CVE-2025-39747

drm/msm: Add error handling for krealloc in metadata setup

State
Published
Severity
Not scored
Published
Sep 11, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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/

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 to before 53dc780c1e94ea782d8936b41bfaa83c663702ebAffected
  • 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 to before 01e3eda8edc3c4caaa49261d1a56c799b0bd6268Affected
  • 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 to before d5386bcede7b57b193c658dcbb9d22004cde7580Affected
  • 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 to before 1c8c354098ea9d4376a58c96ae6b65288a6f15d8Affected
LinuxLinux
  • 3.12Affected
  • before 3.12Not affected
  • 6.12.43 through 6.12.*Not affected
  • 6.15.11 through 6.15.*Not affected
  • 6.16.2 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.