5.5medium
drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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/
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| linux linux_kernel | from 6.1 before 6.1.93, from 6.2 before 6.6.33, from 6.7 before 6.9.4 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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/
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/msm/a6xx: evite una desreferencia de nullptr cuando falla la configuración de speedbin. Llamar a a6xx_destroy() antes de adreno_gpu_init() conduce a una desreferencia de puntero nulo en: msm_gpu_cleanup() : platform_set_drvdata(gpu- >pdev, NULO); ya que gpu->pdev solo se asigna en: a6xx_gpu_init() |_ adreno_gpu_init |_ msm_gpu_init() En lugar de depender de comprobaciones nulas manuales en la cadena de limpieza, desasigne explícitamente los datos LLC y libere a6xx_gpu en su lugar. Remiendo: https://patchwork.freedesktop.org/patch/588919/
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-38390 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2024-38390 changed 2026-06-17 | Public domain |