# CVE-2024-38390: drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-06-21T10:18:13.639Z
- Modified: 2026-06-17T07:40:02.943Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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/

(As written by CVE List.)

## Affected

- Linux Linux: from 76efc2453d0e8e5d6692ef69981b183ad674edea before 247849eeb3fd88f8990ed73e33af70d5c10f9aec; from 76efc2453d0e8e5d6692ef69981b183ad674edea before a1955a6df91355fef72a3a254700acd3cc1fec0d; from 76efc2453d0e8e5d6692ef69981b183ad674edea before 617e3d1680504a3f9d88e1582892c68be155498f; from 76efc2453d0e8e5d6692ef69981b183ad674edea before 46d4efcccc688cbacdd70a238bedca510acaa8e4; 5fea4202b5faccfc6449381a299e8ce4b994d666; from 6.0.10 before 6.1; 6.1 (not affected: before 6.1; from 6.1.93 up to 6.1.*; from 6.6.33 up to 6.6.*; from 6.9.4 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.1 before 6.1.93; from 6.2 before 6.6.33; from 6.7 before 6.9.4

## References

- <https://git.kernel.org/stable/c/247849eeb3fd88f8990ed73e33af70d5c10f9aec> (patch)
- <https://git.kernel.org/stable/c/a1955a6df91355fef72a3a254700acd3cc1fec0d> (patch)
- <https://git.kernel.org/stable/c/617e3d1680504a3f9d88e1582892c68be155498f> (patch)
- <https://git.kernel.org/stable/c/46d4efcccc688cbacdd70a238bedca510acaa8e4> (patch)

## Sources

- CVE List: [CVE-2024-38390](https://www.cve.org/CVERecord?id=CVE-2024-38390), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-38390](https://nvd.nist.gov/vuln/detail/CVE-2024-38390), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-38390 · Whole record: https://cve.day/CVE-2024-38390.json · Rebuilt by cve.day 2026-11-25T22:58:42.113Z
