CVE-2026-53213
JSON

5.5medium

drm/vc4: fix krealloc() memory leak

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.12% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 6d45c81d229d71da54d374143e7d6abad4c0cf31 before 30165a09f76eaf34951c818eb5d9d6e4771d76f6, from 6d45c81d229d71da54d374143e7d6abad4c0cf31 before fd87d6966041e33ef7d2e5dc59f9a52b71c6ae5f, from 6d45c81d229d71da54d374143e7d6abad4c0cf31 before e0ce103e89d61eef70edc1d1ae3bfd4c0aacbc2e, from 6d45c81d229d71da54d374143e7d6abad4c0cf31 before c034aa0b1ba5f49cbdf8ef193d6ec714d74aac27, from 6d45c81d229d71da54d374143e7d6abad4c0cf31 before 02f5e4db57c0cdd7bac89d503b301a093a0fa95c, from 6d45c81d229d71da54d374143e7d6abad4c0cf31 before 4fc692dc6df5bc777cc1bcebf95179e28594875f, from 6d45c81d229d71da54d374143e7d6abad4c0cf31 before 5d563a5da8717629ae72f9eadf1e0e340bd1658b, 4.8
Not affected: before 4.8, from 5.15.210 up to 5.15.*, from 6.1.176 up to 6.1.*, from 6.6.143 up to 6.6.*, from 6.12.94 up to 6.12.*, from 6.18.36 up to 6.18.*
CVE List
linux linux_kernelfrom 4.8 before 5.15.210, from 5.16 before 6.1.176, from 6.2 before 6.6.143, from 6.7 before 6.12.94, from 6.13 before 6.18.36, from 6.19 before 7.0.13, 7.1NVD

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-53213 changed 2026-11-06CVE Terms of Use
NVDCVE-2026-53213 changed 2026-11-06Public domain