CVE-2025-39747 drm/msm: Add error handling for krealloc in metadata setup
A missing error check for memory allocation in the Linux kernel's DRM MSM driver can lead to a null pointer dereference and system crash.
- 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-2025-39747?
CVE-2025-39747 is a medium-severity vulnerability in Linux kernel, published on 11 Sep 2025. 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: Add error handling for krealloc in metadata setup
Function msm_ioctl_gem_info_set_metadata() now checks for krealloc failure and returns -ENOMEM, avoiding potential NULL pointer dereference. Explicitly avoids __GFP_NOFAIL due to deadlock risks and allocation constraints.
Patchwork: https://patchwork.freedesktop.org/patch/661235/
Weakness: CWE-476
Which versions are affected by CVE-2025-39747?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-39747?
Apply the vendor's patch.
Is CVE-2025-39747 being exploited?
There is no known exploitation of CVE-2025-39747 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-67199, AZL-70816, BELL-CVE-2025-39747, DEBIAN-CVE-2025-39747, GHSA-cv3r-ffc6-6hcp, ROOT-OS-DEBIAN-11-CVE-2025-39747 and 4 more.