# CVE-2025-21996: drm/radeon: fix uninitialized size issue in radeon\_vce\_cs\_parse()

- 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: 2025-04-03 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-21996, DEBIAN-CVE-2025-21996
- Record: https://cvemate.com/vulnerability/CVE-2025-21996 · JSON: https://cvemate.com/vulnerability/CVE-2025-21996/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

drm/radeon: fix uninitialized size issue in radeon_vce_cs_parse()

On the off chance that command stream passed from userspace via
ioctl() call to radeon_vce_cs_parse() is weirdly crafted and
first command to execute is to encode (case 0x03000001), the function
in question will attempt to call radeon_vce_cs_reloc() with size
argument that has not been properly initialized. Specifically, 'size'
will point to 'tmp' variable before the latter had a chance to be
assigned any value.

Play it safe and init 'tmp' with 0, thus ensuring that
radeon_vce_cs_reloc() will catch an early error in cases like these.

Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.

(cherry picked from commit 2d52de55f9ee7aaee0e09ac443f77855989c6b68)
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.217%, percentile 12.919%, 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 141)

- debian linux (Debian): \< 6.1.133-1 \| \< 6.12.21-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-218.238 \| \< 5.15.0-142.152 \| \< 6.8.0-84.84
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1147.157 \| \< 5.15.0-1086.93 \| \< 6.8.0-1039.41
- 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)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1086.93~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1147.157~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1039.41~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1147.157+fips1 \| \< 5.15.0-1086.93+fips1 \| \< 6.8.0-1039.41+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1152.159 \| \< 5.15.0-1091.100 \| \< 6.8.0-1038.44
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 54)

- <https://git.kernel.org/stable/c/0effb378ebce52b897f85cd7f828854b8c7cb636>
- <https://git.kernel.org/stable/c/5b4d9d20fd455a97920cf158dd19163b879cf65d>
- <https://git.kernel.org/stable/c/9b2da9c673a0da1359a2151f7ce773e2f77d71a9>
- <https://git.kernel.org/stable/c/78b07dada3f02f77762d0755a96d35f53b02be69>
- <https://git.kernel.org/stable/c/3ce08215cad55c10a6eeeb33d3583b6cfffe3ab8>
- <https://git.kernel.org/stable/c/dd1801aa01bba1760357f2a641346ae149686713>
- <https://git.kernel.org/stable/c/f5e049028124f755283f2c07e7a3708361ed1dc8>
- <https://git.kernel.org/stable/c/dd8689b52a24807c2d5ce0a17cb26dc87f75235c>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://ubuntu.com/security/CVE-2025-21996>
- <https://www.cve.org/CVERecord?id=CVE-2025-21996>
- <https://git.kernel.org/linus/dd8689b52a24807c2d5ce0a17cb26dc87f75235c>
- <https://ubuntu.com/security/notices/USN-7585-1>
- <https://ubuntu.com/security/notices/USN-7585-2>
- <https://ubuntu.com/security/notices/USN-7591-1>
- <https://ubuntu.com/security/notices/USN-7591-2>
- <https://ubuntu.com/security/notices/USN-7591-3>
- <https://ubuntu.com/security/notices/USN-7592-1>
- <https://ubuntu.com/security/notices/USN-7593-1>

---

Data as of 2026-12-05T03:38:57.957Z. 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
