CVE-2026-53213
kernel: drm/vc4: fix krealloc() memory leak
Overview
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().
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-401
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 99 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | kernel | 0:6.6.143.1-1.azl3 |
Oracle Linux 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | bpftool +13 | 5.15.0-323.211.3.3.el8uek |
| 9 | bpftool +2 | 5.15.0-323.211.3.3.el9uek |
| 9 | kernel-uek +34 | 6.12.0-206.104.3.3.el9uek |
Photon OS 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | linux-esx +2 | 6.1.176-1.ph5 |
| 5.0 | bpftool +7 | 6.1.177-1.ph5 |
SUSE Linux Enterprise 3 releases · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | kgraft-patch-4-12-14-122-323-default | 1-8.3.1 | SUSE-SU-2026:3594-1 |
| 12.5 | cluster-md-kmp-default +13 | 4.12.14-122.323.1 | SUSE-SU-2026:3594-1 |
| 15.7 | kernel-livepatch-6-4-0-150700-7-67-rt | 1-150700.1.5.1 | SUSE-SU-2026:3130-1 |
| 15.7 | kernel-livepatch-6-4-0-150700-53-73-default | 1-150700.15.3.4 | SUSE-SU-2026:3166-1 |
| 15.7 | kernel-devel +4 | 6.4.0-150700.53.73.1 | SUSE-SU-2026:3166-1 |
| 15.7 | cluster-md-kmp-default +15 | 6.4.0-150700.53.73.2 | SUSE-SU-2026:3166-1 |
3 more rows
SUSE Linux Enterprise Micro 3 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 6.0 | kernel-devel-rt +3 | 6.4.0-51.1 | SUSE-SU-2026:23241-1 |
| 6.0 | kernel-default +5 | 6.4.0-51.1 | SUSE-SU-2026:23244-1 |
| 6.1 | kernel-devel-rt +4 | 6.4.0-51.1 | SUSE-SU-2026:23193-1 |
| 6.1 | kernel-default +6 | 6.4.0-51.1 | SUSE-SU-2026:23194-1 |
| 6.2 | kernel-64kb +11 | 6.12.0-160000.37.1 | SUSE-SU-2026:23068-1 |
| 6.2 | kernel-default-base | 6.12.0-160000.37.1.160000.2.19 | SUSE-SU-2026:23068-1 |
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| linux-aws-6-12 +4 | 6.12.95-r0 | |
| linux-aws-6-18 +5 | 6.18.38-r0 |
debian 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | affected |
| 11 | linux-6-1 | 6.1.176-1~deb11u1 |
| 12 | linux | 6.1.176-1 |
| 13 | linux | 6.12.94-1 |
| 14 | linux | 7.0.13-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 1 |
openSUSE Leap 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | cluster-md-kmp-64kb +74 | 6.12.0-160000.37.1 | openSUSE-SU-2026:21555-1 |
| 16.0 | kernel-default-base | 6.12.0-160000.37.1.160000.2.19 | openSUSE-SU-2026:21555-1 |
ubuntu 4 releases · 48 packages
| Release | Package | Fixed in |
|---|---|---|
| 20.04-ESM | linux-nvidia-tegra-5-15 | 5.15.0-1070.72~20.04.1 |
| 20.04-ESM | linux-ibm-5-15 +1 | 5.15.0-1111.115~20.04.1 |
| 20.04-ESM | linux-intel-iotg-5-15 | 5.15.0-1112.118~20.04.1 |
| 20.04-ESM | linux-oracle-5-15 | 5.15.0-1114.120~20.04.1 |
| 20.04-ESM | linux-aws-5-15 | 5.15.0-1117.124~20.04.1 |
| 20.04-ESM | linux-gcp-5-15 | 5.15.0-1118.128~20.04.1 |
62 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-53213
- git.kernel.org https://git.kernel.org/linus/5d563a5da8717629ae72f9eadf1e0e340bd1658b (7.1)
- git.kernel.org https://git.kernel.org/stable/c/02f5e4db57c0cdd7bac89d503b301a093a0fa95c
- git.kernel.org https://git.kernel.org/stable/c/30165a09f76eaf34951c818eb5d9d6e4771d76f6
- git.kernel.org https://git.kernel.org/stable/c/4fc692dc6df5bc777cc1bcebf95179e28594875f
- git.kernel.org https://git.kernel.org/stable/c/5d563a5da8717629ae72f9eadf1e0e340bd1658b
- git.kernel.org https://git.kernel.org/stable/c/c034aa0b1ba5f49cbdf8ef193d6ec714d74aac27
- git.kernel.org https://git.kernel.org/stable/c/e0ce103e89d61eef70edc1d1ae3bfd4c0aacbc2e
- git.kernel.org https://git.kernel.org/stable/c/fd87d6966041e33ef7d2e5dc59f9a52b71c6ae5f
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-53213.html
Show all 42 references
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-500248.html
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2026062503-CVE-2026-53213-e52f@gregkh/T
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-53213
- ubuntu.com https://ubuntu.com/security/notices/USN-8726-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8726-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8726-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8726-4
- ubuntu.com https://ubuntu.com/security/notices/USN-8727-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8728-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8728-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8728-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8760-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8760-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8800-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8875-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8875-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8876-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8877-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8878-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8879-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8903-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8903-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8904-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8905-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8905-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8906-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8963-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9002-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9025-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9029-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9066-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-53213
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.