CVE-2024-38390

drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails

State
Published
Severity
Not scored
Published
Jun 21, 2024
Updated
May 23, 2026
Reserved
Jun 21, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails

Calling a6xx_destroy() before adreno_gpu_init() leads to a null pointer dereference on:

msm_gpu_cleanup() : platform_set_drvdata(gpu->pdev, NULL);

as gpu->pdev is only assigned in:

a6xx_gpu_init() |_ adreno_gpu_init |_ msm_gpu_init()

Instead of relying on handwavy null checks down the cleanup chain, explicitly de-allocate the LLC data and free a6xx_gpu instead.

Patchwork: https://patchwork.freedesktop.org/patch/588919/

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 76efc2453d0e8e5d6692ef69981b183ad674edea to before 247849eeb3fd88f8990ed73e33af70d5c10f9aecAffected
  • 76efc2453d0e8e5d6692ef69981b183ad674edea to before a1955a6df91355fef72a3a254700acd3cc1fec0dAffected
  • 76efc2453d0e8e5d6692ef69981b183ad674edea to before 617e3d1680504a3f9d88e1582892c68be155498fAffected
  • 76efc2453d0e8e5d6692ef69981b183ad674edea to before 46d4efcccc688cbacdd70a238bedca510acaa8e4Affected
  • 5fea4202b5faccfc6449381a299e8ce4b994d666Affected
  • 6.0.10 to before 6.1Affected
LinuxLinux
  • 6.1Affected
  • before 6.1Not affected
  • 6.1.93 through 6.1.*Not affected
  • 6.6.33 through 6.6.*Not affected
  • 6.9.4 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.