# CVE-2026-53213: drm/vc4: fix krealloc() memory leak

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-25 · Modified: 2026-11-06
- Aliases: UBUNTU-CVE-2026-53213, DEBIAN-CVE-2026-53213, CGA-3rrx-rh3h-v73w, CGA-44w3-w92x-jrvg, CGA-7m83-88mw-g85m, CGA-95f7-ccgx-6xqm, CGA-c997-hg42-8grf, CGA-f5rw-5rj6-6qmm, CGA-gcp4-74p9-xwfr, CGA-jmq9-7627-q4c6, CGA-jp59-3qjv-6x76, CGA-mxfx-68vg-2xrg, CGA-vwf7-m2px-9j8m, CGA-w584-9x28-gc9m, CGA-wxcw-fvqm-qjrg
- Record: https://cvemate.com/vulnerability/CVE-2026-53213 · JSON: https://cvemate.com/vulnerability/CVE-2026-53213/json

## Description

```text
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().
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.123%, percentile 2.218%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 184)

- chainguard linux-aws-6.12 (Chainguard): \< 6.12.95-r0
- chainguard linux-aws-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-azure-6.12 (Chainguard): \< 6.12.95-r0
- chainguard linux-azure-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-gcp-6.12 (Chainguard): \< 6.12.95-r0
- chainguard linux-gcp-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-gcp-6.18-bootc-boot-installed (Chainguard): \< 6.18.38-r0
- chainguard linux-qemu-6.12 (Chainguard): \< 6.12.95-r0
- chainguard linux-qemu-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-qemu-6.18-bootc-boot-installed (Chainguard): \< 6.18.38-r0
- chainguard linux-qemu-melange (Chainguard): \< 6.18.38-r0
- chainguard linux-vmware-6.12 (Chainguard): \< 6.12.95-r0
- chainguard linux-vmware-6.18 (Chainguard): \< 6.18.38-r0
- debian linux (Debian): \< 6.1.176-1 \| \< 6.12.94-1 \| \< 7.0.13-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-198.208 \| \< 6.8.0-146.146 \| \< 7.0.0-31.31
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1117.124 \| \< 6.8.0-1066.69 \| \< 7.0.0-1012.12
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 40)

- <https://git.kernel.org/stable/c/30165a09f76eaf34951c818eb5d9d6e4771d76f6>
- <https://git.kernel.org/stable/c/fd87d6966041e33ef7d2e5dc59f9a52b71c6ae5f>
- <https://git.kernel.org/stable/c/e0ce103e89d61eef70edc1d1ae3bfd4c0aacbc2e>
- <https://git.kernel.org/stable/c/c034aa0b1ba5f49cbdf8ef193d6ec714d74aac27>
- <https://git.kernel.org/stable/c/02f5e4db57c0cdd7bac89d503b301a093a0fa95c>
- <https://git.kernel.org/stable/c/4fc692dc6df5bc777cc1bcebf95179e28594875f>
- <https://git.kernel.org/stable/c/5d563a5da8717629ae72f9eadf1e0e340bd1658b>
- <https://ubuntu.com/security/CVE-2026-53213>
- <https://www.cve.org/CVERecord?id=CVE-2026-53213>
- <https://git.kernel.org/linus/5d563a5da8717629ae72f9eadf1e0e340bd1658b>
- <https://ubuntu.com/security/notices/USN-8726-1>
- <https://ubuntu.com/security/notices/USN-8727-1>
- <https://ubuntu.com/security/notices/USN-8728-1>
- <https://ubuntu.com/security/notices/USN-8760-1>
- <https://ubuntu.com/security/notices/USN-8726-2>
- <https://ubuntu.com/security/notices/USN-8726-3>
- <https://ubuntu.com/security/notices/USN-8800-1>
- <https://ubuntu.com/security/notices/USN-8760-2>
- <https://ubuntu.com/security/notices/USN-8728-2>
- <https://ubuntu.com/security/notices/USN-8726-4>

---

Data as of 2026-12-05T09:57:43.602Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
