CVE-2024-38390

Severity CVSS v4.0:
Pending analysis
Type:
CWE-476 NULL Pointer Dereference
Publication date:
21/06/2024
Last modified:
09/09/2024

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails<br /> <br /> Calling a6xx_destroy() before adreno_gpu_init() leads to a null pointer<br /> dereference on:<br /> <br /> msm_gpu_cleanup() : platform_set_drvdata(gpu-&gt;pdev, NULL);<br /> <br /> as gpu-&gt;pdev is only assigned in:<br /> <br /> a6xx_gpu_init()<br /> |_ adreno_gpu_init<br /> |_ msm_gpu_init()<br /> <br /> Instead of relying on handwavy null checks down the cleanup chain,<br /> explicitly de-allocate the LLC data and free a6xx_gpu instead.<br /> <br /> Patchwork: https://patchwork.freedesktop.org/patch/588919/

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.1 (including) 6.1.93 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.33 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.9.4 (excluding)