CVE-2025-39747

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

MEDIUM
5.5
CVSS Score
Published: September 11, 2025 at 04:52 PM UTC
Updated: October 19, 2026 at 09:10 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versions3.12 ≤ v < 6.12.436.13 ≤ v < 6.15.116.16 ≤ v < 6.16.20cf6c71d70d8aa39b8fd0e39c9009602a0e0d3003.12
Vendor states this is fixed in 01e3eda8edc3c4caaa49261d1a56c799b0bd6268 (fixed)
Vendor states this is fixed in 1c8c354098ea9d4376a58c96ae6b65288a6f15d8 (fixed)
Vendor states this is fixed in 53dc780c1e94ea782d8936b41bfaa83c663702eb (fixed)
Vendor states this is fixed in d5386bcede7b57b193c658dcbb9d22004cde7580 (fixed)
Vendor states this is fixed in 3.12 (unaffected)
Vendor states this is fixed in 6.12.43 (unaffected)
Vendor states this is fixed in 6.15.11 (unaffected)
Vendor states this is fixed in 6.16.2 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/01e3eda8edc3c4caaa49261d1a56c799b0bd6268
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1c8c354098ea9d4376a58c96ae6b65288a6f15d8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/53dc780c1e94ea782d8936b41bfaa83c663702eb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d5386bcede7b57b193c658dcbb9d22004cde7580

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card