# CVE-2025-39747: drm/msm: Add error handling for krealloc in metadata setup

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-02)
- Published: 2025-09-11T16:52:19.816Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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/

(As written by CVE List.)

## Affected

- Linux Linux: from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 before 53dc780c1e94ea782d8936b41bfaa83c663702eb; from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 before 01e3eda8edc3c4caaa49261d1a56c799b0bd6268; from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 before d5386bcede7b57b193c658dcbb9d22004cde7580; from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 before 1c8c354098ea9d4376a58c96ae6b65288a6f15d8; 3.12 (not affected: before 3.12; from 6.12.43 up to 6.12.*; from 6.15.11 up to 6.15.*; from 6.16.2 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 3.12 before 6.12.43; from 6.13 before 6.15.11; from 6.16 before 6.16.2

## References

- <https://git.kernel.org/stable/c/53dc780c1e94ea782d8936b41bfaa83c663702eb> (patch)
- <https://git.kernel.org/stable/c/01e3eda8edc3c4caaa49261d1a56c799b0bd6268> (patch)
- <https://git.kernel.org/stable/c/d5386bcede7b57b193c658dcbb9d22004cde7580> (patch)
- <https://git.kernel.org/stable/c/1c8c354098ea9d4376a58c96ae6b65288a6f15d8> (patch)

## Sources

- CVE List: [CVE-2025-39747](https://www.cve.org/CVERecord?id=CVE-2025-39747), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-39747](https://nvd.nist.gov/vuln/detail/CVE-2025-39747), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39747 · Whole record: https://cve.day/CVE-2025-39747.json · Rebuilt by cve.day 2026-11-25T22:59:04.546Z
