CVE-2025-39747 Details
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/
A vulnerability in the Linux kernel's DRM MSM (Direct Rendering Manager Qualcomm) component has been addressed. The issue arose in the 'msm_ioctl_gem_info_set_metadata' function, which now includes error handling for memory reallocation failures. Previously, a failure to reallocate memory could have led to a null pointer dereference. The function now returns an 'ENOMEM' error when a reallocation fails, preventing potential crashes. Additionally, the function avoids using the 'GFP_NOFAIL' allocation flag, which could cause deadlocks under certain conditions.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for upgrading the Linux kernel can be found in the official Linux documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/01e3eda8edc3c4caaa49261d1a56c799b0bd6268 | kernel.org | Patch |
| https://git.kernel.org/stable/c/1c8c354098ea9d4376a58c96ae6b65288a6f15d8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/53dc780c1e94ea782d8936b41bfaa83c663702eb | kernel.org | Patch |
| https://git.kernel.org/stable/c/d5386bcede7b57b193c658dcbb9d22004cde7580 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.12, < 6.12.43 >= 6.13, < 6.15.11 >= 6.16, < 6.16.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 25, 2025 | Initial Analysis | [email protected] |
| Sep 11, 2025 | New CVE Received | kernel.org |