CVE-2025-23157
JSON

7.8high

media: venus: hfi_parser: add check to avoid out of bound access

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: media: venus: hfi_parser: add check to avoid out of bound access There is a possibility that init_codecs is invoked multiple times during manipulated payload from video firmware. In such case, if codecs_count can get incremented to value more than MAX_CODEC_NUM, there can be OOB access. Reset the count so that it always starts from beginning.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 1a73374a04e555103e5369429a30999114001dda before e5133a0b25463674903fdc0528e0a29b7267130e, from 1a73374a04e555103e5369429a30999114001dda before 2b8b9ea4e26a501eb220ea189e42b4527e65bdfa, from 1a73374a04e555103e5369429a30999114001dda before 1ad6aa1464b8a5ce5c194458315021e8d216108e, from 1a73374a04e555103e5369429a30999114001dda before 26bbedd06d85770581fda5d78e78539bb088fad1, from 1a73374a04e555103e5369429a30999114001dda before d4d88ece4ba91df5b02f1d3f599650f9e9fc0f45, from 1a73374a04e555103e5369429a30999114001dda before 53e376178ceacca3ef1795038b22fc9ef45ff1d3, from 1a73374a04e555103e5369429a30999114001dda before b2541e29d82da8a0df728aadec3e0a8db55d517b, from 1a73374a04e555103e5369429a30999114001dda before cb5be9039f91979f8a2fac29f529f746d7848f3e and 2 more
Not affected: before 4.19, from 5.4.293 up to 5.4.*, from 5.10.237 up to 5.10.*, from 5.15.181 up to 5.15.*, from 6.1.135 up to 6.1.*, from 6.6.88 up to 6.6.*
CVE List
linux linux_kernelfrom 4.19 before 5.4.293, from 5.5 before 5.10.237, from 5.11 before 5.15.181, from 5.16 before 6.1.135, from 6.2 before 6.6.88, from 6.7 before 6.12.24, from 6.13 before 6.13.12, from 6.14 before 6.14.3NVD
debian debian_linux11.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: media: venus: hfi_parser: add check to avoid out of bound access There is a possibility that init_codecs is invoked multiple times during manipulated payload from video firmware. In such case, if codecs_count can get incremented to value more than MAX_CODEC_NUM, there can be OOB access. Reset the count so that it always starts from beginning.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: media: venus: hfi_parser: añadir comprobación para evitar accesos fuera de los límites. Existe la posibilidad de que init_codecs se invoque varias veces durante la manipulación de la carga útil del firmware de vídeo. En tal caso, si codecs_count se incrementa a un valor superior a MAX_CODEC_NUM, puede haber accesos fuera de los límites. Restablezca el contador para que siempre comience desde el principio.

References

https://git.kernel.org/stable/c/e5133a0b25463674903fdc0528e0a29b7267130epatch
https://git.kernel.org/stable/c/2b8b9ea4e26a501eb220ea189e42b4527e65bdfapatch
https://git.kernel.org/stable/c/1ad6aa1464b8a5ce5c194458315021e8d216108epatch
https://git.kernel.org/stable/c/26bbedd06d85770581fda5d78e78539bb088fad1patch
https://git.kernel.org/stable/c/d4d88ece4ba91df5b02f1d3f599650f9e9fc0f45patch
https://git.kernel.org/stable/c/53e376178ceacca3ef1795038b22fc9ef45ff1d3patch
https://git.kernel.org/stable/c/b2541e29d82da8a0df728aadec3e0a8db55d517bpatch
https://git.kernel.org/stable/c/cb5be9039f91979f8a2fac29f529f746d7848f3epatch
https://git.kernel.org/stable/c/172bf5a9ef70a399bb227809db78442dc01d9e48patch
https://lists.debian.org/debian-lts-announce/2025/05/msg00045.htmlmailing-list
https://lists.debian.org/debian-lts-announce/2025/05/msg00030.htmlmailing-list

Sources

SourceRecordLicence
CVE ListCVE-2025-23157 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-23157 changed 2026-07-30Public domain