CVE-2025-21996

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

MEDIUM
5.5
CVSS Score
Published: April 3, 2025 at 07:18 AM UTC
Updated: June 17, 2026 at 08:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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)

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.15 ≤ v < 5.10.2363.15 ≤ v < 5.15.1803.15 ≤ v < 5.4.2923.15 ≤ v < 6.1.1323.15 ≤ v < 6.12.213.15 ≤ v < 6.13.93.15 ≤ v < 6.143.15 ≤ v < 6.6.855.11 ≤ v < 5.15.1805.16 ≤ v < 6.1.1325.5 ≤ v < 5.10.2366.13 ≤ v < 6.13.96.2 ≤ v < 6.6.856.7 ≤ v < 6.12.212fc5703abda201f138faf63bdca743d04dbf4b1a6.14 rc16.14 rc26.14 rc36.14 rc46.14 rc56.14 rc66.14 rc7
Vendor states this is fixed in 0effb378ebce52b897f85cd7f828854b8c7cb636 (fixed)
Vendor states this is fixed in 3ce08215cad55c10a6eeeb33d3583b6cfffe3ab8 (fixed)
Vendor states this is fixed in 5b4d9d20fd455a97920cf158dd19163b879cf65d (fixed)
Vendor states this is fixed in 78b07dada3f02f77762d0755a96d35f53b02be69 (fixed)
Vendor states this is fixed in 9b2da9c673a0da1359a2151f7ce773e2f77d71a9 (fixed)
Vendor states this is fixed in dd1801aa01bba1760357f2a641346ae149686713 (fixed)
Vendor states this is fixed in dd8689b52a24807c2d5ce0a17cb26dc87f75235c (fixed)
Vendor states this is fixed in f5e049028124f755283f2c07e7a3708361ed1dc8 (fixed)
Vendor states this is fixed in 3.15 (unaffected)
Vendor states this is fixed in 5.10.236 (unaffected)
Vendor states this is fixed in 5.15.180 (unaffected)
Vendor states this is fixed in 5.4.292 (unaffected)
Vendor states this is fixed in 6.1.132 (unaffected)
Vendor states this is fixed in 6.12.21 (unaffected)
Vendor states this is fixed in 6.13.9 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.85 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0effb378ebce52b897f85cd7f828854b8c7cb636
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3ce08215cad55c10a6eeeb33d3583b6cfffe3ab8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5b4d9d20fd455a97920cf158dd19163b879cf65d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/78b07dada3f02f77762d0755a96d35f53b02be69
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9b2da9c673a0da1359a2151f7ce773e2f77d71a9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dd1801aa01bba1760357f2a641346ae149686713
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dd8689b52a24807c2d5ce0a17cb26dc87f75235c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f5e049028124f755283f2c07e7a3708361ed1dc8

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-908

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card