What’s Vulnerable › Vulnerabilities
CVE-2025-39747: drm/msm: Add error handling for krealloc in metadata setup
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-11 · updated 2026-10-19
- Weakness: CWE-476
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 products
- Linux kernel: from 3.12 before 6.12.43; from 6.13 before 6.15.11; from 6.16 before 6.16.2 — fixed in 6.12.43, 6.15.11, 6.16.2
How to fix
Upgrade to a fixed version: Linux kernel 6.12.43, 6.15.11, 6.16.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/01e3eda8edc3c4caaa49261d1a56c799b0bd6268
- https://git.kernel.org/stable/c/1c8c354098ea9d4376a58c96ae6b65288a6f15d8
- https://git.kernel.org/stable/c/53dc780c1e94ea782d8936b41bfaa83c663702eb
- https://git.kernel.org/stable/c/d5386bcede7b57b193c658dcbb9d22004cde7580
Get alerted when CVE-2025-39747 or the next vulnerability affects your stack