CVE-2024-38390 drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails
A null pointer dereference in the Linux kernel's MSM GPU driver can cause a system crash when speedbin settings fail during initialization.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-38390?
CVE-2024-38390 is a medium-severity vulnerability in Linux kernel, published on 21 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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/
Weakness: CWE-476
Which versions are affected by CVE-2024-38390?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-38390?
Apply the vendor's patch.
Is CVE-2024-38390 being exploited?
There is no known exploitation of CVE-2024-38390 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-38390, DEBIAN-CVE-2024-38390, GHSA-mpxh-cqc3-vxpw, UBUNTU-CVE-2024-38390.