CVE-2025-39747
drm/msm: Add error handling for krealloc in metadata setup
Mitigation
- Upgrade Linux to 1c8c354098ea9d4376a58c96ae6b65288a6f15d8 or later.
Who should check
- Anyone running Linux >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 53dc780c1e94ea782d8936b41bfaa83c663702eb; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 01e3eda8edc3c4caaa49261d1a56c799b0bd6268; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < d5386bcede7b57b193c658dcbb9d22004cde7580; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 1c8c354098ea9d4376a58c96ae6b65288a6f15d8
- Anyone running Linux 3.12
Vulnerability facts
- Affected
- Linux >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 53dc780c1e94ea782d8936b41bfaa83c663702eb; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 01e3eda8edc3c4caaa49261d1a56c799b0bd6268; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < d5386bcede7b57b193c658dcbb9d22004cde7580; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 1c8c354098ea9d4376a58c96ae6b65288a6f15d8; Linux 3.12
- Fixed in
- Linux 53dc780c1e94ea782d8936b41bfaa83c663702eb, Linux 01e3eda8edc3c4caaa49261d1a56c799b0bd6268, Linux 1c8c354098ea9d4376a58c96ae6b65288a6f15d8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- CWE
- CWE-476
- Modified
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/
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 53dc780c1e94ea782d8936b41bfaa83c663702eb; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 01e3eda8edc3c4caaa49261d1a56c799b0bd6268; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < d5386bcede7b57b193c658dcbb9d22004cde7580; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 1c8c354098ea9d4376a58c96ae6b65288a6f15d8 | — | cvelist |
| Linux | 3.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-39747. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-39747.md Affected: Linux >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 53dc780c1e94ea782d8936b41bfaa83c663702eb; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 01e3eda8edc3c4caaa49261d1a56c799b0bd6268; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < d5386bcede7b57b193c658dcbb9d22004cde7580; >= 0cf6c71d70d8aa39b8fd0e3… Fixed in: Linux 53dc780c1e94ea782d8936b41bfaa83c663702eb, Linux 01e3eda8edc3c4caaa49261d1a56c799b0bd6268, Linux 1c8c354098ea9d4376a58c96ae6b65288a6f15d8 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2025-39747 being exploited?
There is no confirmed exploitation: CVE-2025-39747 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-39747?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-39747?
Linux >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 53dc780c1e94ea782d8936b41bfaa83c663702eb; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 01e3eda8edc3c4caaa49261d1a56c799b0bd6268; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < d5386bcede7b57b193c658dcbb9d22004cde7580; >= 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300, < 1c8c354098ea9d4376a58c96ae6b65288a6f15d8; Linux 3.12.
Is there a fix for CVE-2025-39747?
Yes. Fixed in Linux 53dc780c1e94ea782d8936b41bfaa83c663702eb, Linux 01e3eda8edc3c4caaa49261d1a56c799b0bd6268, Linux 1c8c354098ea9d4376a58c96ae6b65288a6f15d8. Upgrade Linux to 1c8c354098ea9d4376a58c96ae6b65288a6f15d8 or later.
How do I check if I'm affected by CVE-2025-39747?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.