CVE-2026-53213
Received Received - Intake
Memory Leak in Linux Kernel DRM VC4 Driver

Publication date: 2026-06-25

Last updated on: 2026-06-25

Assigner: kernel.org

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().
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-25
Last Modified
2026-06-25
Generated
2026-06-25
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability is a memory leak issue in the Linux kernel's drm/vc4 component related to the use of the krealloc() function.

The problem occurs because the original pointer passed to krealloc() is overwritten directly with the return value without checking if krealloc() returned NULL.

If krealloc() returns NULL, the original pointer to the still allocated memory is lost, causing a memory leak.

The fix involves using a temporary variable to store the return value of krealloc(), checking if it is NULL, and only then assigning it back to the original pointer.

Impact Analysis

This vulnerability can lead to memory leaks in the Linux kernel, which may cause increased memory usage over time.

Memory leaks can degrade system performance, potentially leading to system instability or crashes if memory exhaustion occurs.

Mitigation Strategies

To mitigate this vulnerability, update the Linux kernel to a version where the drm/vc4 krealloc() memory leak has been fixed.

The fix involves changing the code to avoid overwriting the original pointer passed to krealloc() without checking if the return value is NULL. Instead, use a temporary variable to hold the return value of krealloc(), check if it is NULL, and only then assign it to the original pointer.

Additionally, use krealloc_array() instead of krealloc() where appropriate.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-53213. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart