{"id":"CVE-2026-53213","summary":"drm/vc4: fix krealloc() memory leak","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/vc4: fix krealloc() memory leak\n\nDon't just overwrite the original pointer passed to krealloc()\nwith its return value without checking latter:\n\n    MEM = krealloc(MEM, SZ, GFP);\n\nIf krealloc() returns NULL, that erases the pointer\nto the still allocated memory, hence leaks this memory.\nInstead, use a temporary variable, check it's not NULL\nand only then assign it to the original pointer:\n\n    TMP = krealloc(MEM, SZ, GFP);\n    if (!TMP) return;\n    MEM = TMP;\n\nWhile on it, use krealloc_array().","modified":"2026-07-08T08:13:44.769878081Z","published":"2026-06-25T08:39:17.552Z","related":["CGA-qw62-w687-6p5h"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53213.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/02f5e4db57c0cdd7bac89d503b301a093a0fa95c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/30165a09f76eaf34951c818eb5d9d6e4771d76f6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4fc692dc6df5bc777cc1bcebf95179e28594875f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5d563a5da8717629ae72f9eadf1e0e340bd1658b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c034aa0b1ba5f49cbdf8ef193d6ec714d74aac27"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e0ce103e89d61eef70edc1d1ae3bfd4c0aacbc2e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fd87d6966041e33ef7d2e5dc59f9a52b71c6ae5f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53213.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53213"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6d45c81d229d71da54d374143e7d6abad4c0cf31"},{"fixed":"30165a09f76eaf34951c818eb5d9d6e4771d76f6"},{"fixed":"fd87d6966041e33ef7d2e5dc59f9a52b71c6ae5f"},{"fixed":"e0ce103e89d61eef70edc1d1ae3bfd4c0aacbc2e"},{"fixed":"c034aa0b1ba5f49cbdf8ef193d6ec714d74aac27"},{"fixed":"02f5e4db57c0cdd7bac89d503b301a093a0fa95c"},{"fixed":"4fc692dc6df5bc777cc1bcebf95179e28594875f"},{"fixed":"5d563a5da8717629ae72f9eadf1e0e340bd1658b"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53213.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.8.0"},{"fixed":"5.15.210"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.176"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.143"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.94"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.36"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.13"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53213.json"}}],"schema_version":"1.7.5"}