In the Linux kernel, the following vulnerability has been resolved:
drm/radeon: fix uninitialized size issue in radeonvcecs_parse()
On the off chance that command stream passed from userspace via ioctl() call to radeonvcecsparse() is weirdly crafted and first command to execute is to encode (case 0x03000001), the function in question will attempt to call radeonvcecsreloc() 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 radeonvcecs_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)
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0effb378ebce52b897f85cd7f828854b8c7cb636",
"target": {
"function": "radeon_vce_cs_parse",
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-09af900f",
"signature_version": "v1",
"digest": {
"length": 2308.0,
"function_hash": "336825843123968485300588001913695208681"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dd1801aa01bba1760357f2a641346ae149686713",
"target": {
"function": "radeon_vce_cs_parse",
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-0e4a8902",
"signature_version": "v1",
"digest": {
"length": 2308.0,
"function_hash": "336825843123968485300588001913695208681"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f5e049028124f755283f2c07e7a3708361ed1dc8",
"target": {
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-12ea6435",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"158643134091637203892541062806445037954",
"58695251723421865513991954610956849448",
"44123772481851489127562046560486166843",
"55022326567826894156314229196153673175"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@78b07dada3f02f77762d0755a96d35f53b02be69",
"target": {
"function": "radeon_vce_cs_parse",
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-25686e75",
"signature_version": "v1",
"digest": {
"length": 2308.0,
"function_hash": "336825843123968485300588001913695208681"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dd8689b52a24807c2d5ce0a17cb26dc87f75235c",
"target": {
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-302fea46",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"158643134091637203892541062806445037954",
"58695251723421865513991954610956849448",
"44123772481851489127562046560486166843",
"55022326567826894156314229196153673175"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3ce08215cad55c10a6eeeb33d3583b6cfffe3ab8",
"target": {
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-37267337",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"158643134091637203892541062806445037954",
"58695251723421865513991954610956849448",
"44123772481851489127562046560486166843",
"55022326567826894156314229196153673175"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f5e049028124f755283f2c07e7a3708361ed1dc8",
"target": {
"function": "radeon_vce_cs_parse",
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-541ae0a7",
"signature_version": "v1",
"digest": {
"length": 2308.0,
"function_hash": "336825843123968485300588001913695208681"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0effb378ebce52b897f85cd7f828854b8c7cb636",
"target": {
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-6420c52f",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"158643134091637203892541062806445037954",
"58695251723421865513991954610956849448",
"44123772481851489127562046560486166843",
"55022326567826894156314229196153673175"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b4d9d20fd455a97920cf158dd19163b879cf65d",
"target": {
"function": "radeon_vce_cs_parse",
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-8023199c",
"signature_version": "v1",
"digest": {
"length": 2308.0,
"function_hash": "336825843123968485300588001913695208681"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b2da9c673a0da1359a2151f7ce773e2f77d71a9",
"target": {
"function": "radeon_vce_cs_parse",
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-92c3debd",
"signature_version": "v1",
"digest": {
"length": 2308.0,
"function_hash": "336825843123968485300588001913695208681"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dd8689b52a24807c2d5ce0a17cb26dc87f75235c",
"target": {
"function": "radeon_vce_cs_parse",
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-aabb5fe5",
"signature_version": "v1",
"digest": {
"length": 2308.0,
"function_hash": "336825843123968485300588001913695208681"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dd1801aa01bba1760357f2a641346ae149686713",
"target": {
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-b051d05c",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"158643134091637203892541062806445037954",
"58695251723421865513991954610956849448",
"44123772481851489127562046560486166843",
"55022326567826894156314229196153673175"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3ce08215cad55c10a6eeeb33d3583b6cfffe3ab8",
"target": {
"function": "radeon_vce_cs_parse",
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-d9e50b11",
"signature_version": "v1",
"digest": {
"length": 2308.0,
"function_hash": "336825843123968485300588001913695208681"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b4d9d20fd455a97920cf158dd19163b879cf65d",
"target": {
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-e31d9b4c",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"158643134091637203892541062806445037954",
"58695251723421865513991954610956849448",
"44123772481851489127562046560486166843",
"55022326567826894156314229196153673175"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@78b07dada3f02f77762d0755a96d35f53b02be69",
"target": {
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-f580e53a",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"158643134091637203892541062806445037954",
"58695251723421865513991954610956849448",
"44123772481851489127562046560486166843",
"55022326567826894156314229196153673175"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b2da9c673a0da1359a2151f7ce773e2f77d71a9",
"target": {
"file": "drivers/gpu/drm/radeon/radeon_vce.c"
},
"deprecated": false,
"id": "CVE-2025-21996-f69a28e2",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"158643134091637203892541062806445037954",
"58695251723421865513991954610956849448",
"44123772481851489127562046560486166843",
"55022326567826894156314229196153673175"
]
},
"signature_type": "Line"
}
]