CVE-2026-53213

drm/vc4: fix krealloc() memory leak

MEDIUM
5.5
CVSS Score
Published: June 25, 2026 at 08:39 AM UTC
Updated: July 2, 2026 at 09:08 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.1%

Description

In the Linux kernel, the following vulnerability has been resolved: drm/vc4: fix krealloc() memory leak Don't just overwrite the original pointer passed to krealloc() with its return value without checking latter: MEM = krealloc(MEM, SZ, GFP); If krealloc() returns NULL, that erases the pointer to the still allocated memory, hence leaks this memory. Instead, use a temporary variable, check it's not NULL and only then assign it to the original pointer: TMP = krealloc(MEM, SZ, GFP); if (!TMP) return; MEM = TMP; While on it, use krealloc_array().

Affected

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

4.8 ≤ v < 5.15.2104.8 ≤ v < 6.1.1764.8 ≤ v < 6.12.944.8 ≤ v < 6.18.364.8 ≤ v < 6.6.1434.8 ≤ v < 7.0.134.8 ≤ v < 7.15.16 ≤ v < 6.1.1766.13 ≤ v < 6.18.366.19 ≤ v < 7.0.136.2 ≤ v < 6.6.1436.7 ≤ v < 6.12.946d45c81d229d71da54d374143e7d6abad4c0cf317.1 rc17.1 rc27.1 rc37.1 rc47.1 rc57.1 rc67.1 rc7
Vendor states this is fixed in 02f5e4db57c0cdd7bac89d503b301a093a0fa95c (fixed)
Vendor states this is fixed in 30165a09f76eaf34951c818eb5d9d6e4771d76f6 (fixed)
Vendor states this is fixed in 4fc692dc6df5bc777cc1bcebf95179e28594875f (fixed)
Vendor states this is fixed in 5d563a5da8717629ae72f9eadf1e0e340bd1658b (fixed)
Vendor states this is fixed in c034aa0b1ba5f49cbdf8ef193d6ec714d74aac27 (fixed)
Vendor states this is fixed in e0ce103e89d61eef70edc1d1ae3bfd4c0aacbc2e (fixed)
Vendor states this is fixed in fd87d6966041e33ef7d2e5dc59f9a52b71c6ae5f (fixed)
Vendor states this is fixed in 4.8 (unaffected)
Vendor states this is fixed in 5.15.210 (unaffected)
Vendor states this is fixed in 6.1.176 (unaffected)
Vendor states this is fixed in 6.12.94 (unaffected)
Vendor states this is fixed in 6.18.36 (unaffected)
Vendor states this is fixed in 6.6.143 (unaffected)
Vendor states this is fixed in 7.0.13 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

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-401

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