{"id":"CVE-2025-21996","aliases":["CVE-2025-21996"],"related":[],"kind":"vulnerability","state":"published","title":"drm/radeon: fix uninitialized size issue in radeon_vce_cs_parse()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/radeon: fix uninitialized size issue in radeon_vce_cs_parse()\n\nOn the off chance that command stream passed from userspace via\nioctl() call to radeon_vce_cs_parse() is weirdly crafted and\nfirst command to execute is to encode (case 0x03000001), the function\nin question will attempt to call radeon_vce_cs_reloc() with size\nargument that has not been properly initialized. Specifically, 'size'\nwill point to 'tmp' variable before the latter had a chance to be\nassigned any value.\n\nPlay it safe and init 'tmp' with 0, thus ensuring that\nradeon_vce_cs_reloc() will catch an early error in cases like these.\n\nFound by Linux Verification Center (linuxtesting.org) with static\nanalysis tool SVACE.\n\n(cherry picked from commit 2d52de55f9ee7aaee0e09ac443f77855989c6b68)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/radeon: fix uninitialized size issue in radeon_vce_cs_parse()\n\nOn the off chance that command stream passed from userspace via\nioctl() call to radeon_vce_cs_parse() is weirdly crafted and\nfirst command to execute is to encode (case 0x03000001), the function\nin question will attempt to call radeon_vce_cs_reloc() with size\nargument that has not been properly initialized. Specifically, 'size'\nwill point to 'tmp' variable before the latter had a chance to be\nassigned any value.\n\nPlay it safe and init 'tmp' with 0, thus ensuring that\nradeon_vce_cs_reloc() will catch an early error in cases like these.\n\nFound by Linux Verification Center (linuxtesting.org) with static\nanalysis tool SVACE.\n\n(cherry picked from commit 2d52de55f9ee7aaee0e09ac443f77855989c6b68)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/radeon: soluciona el problema de tamaño no inicializado en radeon_vce_cs_parse() En el improbable caso de que el flujo de comandos pasado desde el espacio de usuario a través de la llamada ioctl() a radeon_vce_cs_parse() esté manipulado de forma extraña y el primer comando a ejecutar sea codificar (caso 0x03000001), la función en cuestión intentará llamar a radeon_vce_cs_reloc() con el argumento de tamaño que no se ha inicializado correctamente. Específicamente, 'size' apuntará a la variable 'tmp' antes de que a esta última se le haya asignado algún valor. Vaya a lo seguro e inicialice 'tmp' con 0, lo que garantiza que radeon_vce_cs_reloc() detecte un error temprano en casos como estos. Encontrado por el Centro de Verificación de Linux (linuxtesting.org) con la herramienta de análisis estático SVACE. (seleccionado del commit 2d52de55f9ee7aaee0e09ac443f77855989c6b68)","source":"nvd"}],"published":"2025-04-03T07:18:59.933Z","modified":"2026-06-17T08:44:48.000Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"type":"git","introduced":"2fc5703abda201f138faf63bdca743d04dbf4b1a","fixed":"0effb378ebce52b897f85cd7f828854b8c7cb636","status":"affected"},{"type":"git","introduced":"2fc5703abda201f138faf63bdca743d04dbf4b1a","fixed":"5b4d9d20fd455a97920cf158dd19163b879cf65d","status":"affected"},{"type":"git","introduced":"2fc5703abda201f138faf63bdca743d04dbf4b1a","fixed":"9b2da9c673a0da1359a2151f7ce773e2f77d71a9","status":"affected"},{"type":"git","introduced":"2fc5703abda201f138faf63bdca743d04dbf4b1a","fixed":"78b07dada3f02f77762d0755a96d35f53b02be69","status":"affected"},{"type":"git","introduced":"2fc5703abda201f138faf63bdca743d04dbf4b1a","fixed":"3ce08215cad55c10a6eeeb33d3583b6cfffe3ab8","status":"affected"},{"type":"git","introduced":"2fc5703abda201f138faf63bdca743d04dbf4b1a","fixed":"dd1801aa01bba1760357f2a641346ae149686713","status":"affected"},{"type":"git","introduced":"2fc5703abda201f138faf63bdca743d04dbf4b1a","fixed":"f5e049028124f755283f2c07e7a3708361ed1dc8","status":"affected"},{"type":"git","introduced":"2fc5703abda201f138faf63bdca743d04dbf4b1a","fixed":"dd8689b52a24807c2d5ce0a17cb26dc87f75235c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.15","status":"unaffected"},{"type":"semver","introduced":"5.4.292","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.236","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.180","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.132","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.85","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.21","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.9","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.15","fixed":"5.4.292"},{"status":"affected","introduced":"5.5","fixed":"5.10.236"},{"status":"affected","introduced":"5.11","fixed":"5.15.180"},{"status":"affected","introduced":"5.16","fixed":"6.1.132"},{"status":"affected","introduced":"6.2","fixed":"6.6.85"},{"status":"affected","introduced":"6.7","fixed":"6.12.21"},{"status":"affected","introduced":"6.13","fixed":"6.13.9"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0effb378ebce52b897f85cd7f828854b8c7cb636","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b4d9d20fd455a97920cf158dd19163b879cf65d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b2da9c673a0da1359a2151f7ce773e2f77d71a9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/78b07dada3f02f77762d0755a96d35f53b02be69","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3ce08215cad55c10a6eeeb33d3583b6cfffe3ab8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd1801aa01bba1760357f2a641346ae149686713","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f5e049028124f755283f2c07e7a3708361ed1dc8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd8689b52a24807c2d5ce0a17cb26dc87f75235c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T18:15:07.384Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21996","url":"https://www.cve.org/CVERecord?id=CVE-2025-21996","licence":"CVE Terms of Use","modified":"2026-05-11T21:10:37.545Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21996","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21996","licence":"Public domain","modified":"2026-06-17T08:44:48.000Z"}],"updatedAt":"2026-11-25T22:58:55.983Z","epss":{"score":0.00217,"percentile":0.12932,"date":"2026-12-02T12:00:21.000Z"}}