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().
References (7)
Core 7
Core References
Scores
CVSS v3
5.5
EPSS
0.0013
EPSS Percentile
2.8%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-401
Status
published
Products (24)
linux/Kernel
4.8.0 - 5.15.210linux
linux/Kernel
5.16.0 - 6.1.176linux
linux/Kernel
6.13.0 - 6.18.36linux
linux/Kernel
6.19.0 - 7.0.13linux
linux/Kernel
6.2.0 - 6.6.143linux
linux/Kernel
6.7.0 - 6.12.94linux
Linux/Linux
< 4.8
Linux/Linux
4.8
Linux/Linux
5.15.210 - 5.15.*
Linux/Linux
6.1.176 - 6.1.*
... and 14 more
Published
Jun 25, 2026
Tracked Since
Jun 25, 2026