# CVE-2025-23157: media: venus: hfi_parser: add check to avoid out of bound access

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-05-01T12:55:43.193Z
- Modified: 2026-08-05T11:57:08.273Z
- Weaknesses: CWE-125
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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; from 1a73374a04e555103e5369429a30999114001dda before 172bf5a9ef70a399bb227809db78442dc01d9e48; 4.19 (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.*; from 6.12.24 up to 6.12.*; from 6.13.12 up to 6.13.*; from 6.14.3 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 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.3
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/e5133a0b25463674903fdc0528e0a29b7267130e> (patch)
- <https://git.kernel.org/stable/c/2b8b9ea4e26a501eb220ea189e42b4527e65bdfa> (patch)
- <https://git.kernel.org/stable/c/1ad6aa1464b8a5ce5c194458315021e8d216108e> (patch)
- <https://git.kernel.org/stable/c/26bbedd06d85770581fda5d78e78539bb088fad1> (patch)
- <https://git.kernel.org/stable/c/d4d88ece4ba91df5b02f1d3f599650f9e9fc0f45> (patch)
- <https://git.kernel.org/stable/c/53e376178ceacca3ef1795038b22fc9ef45ff1d3> (patch)
- <https://git.kernel.org/stable/c/b2541e29d82da8a0df728aadec3e0a8db55d517b> (patch)
- <https://git.kernel.org/stable/c/cb5be9039f91979f8a2fac29f529f746d7848f3e> (patch)
- <https://git.kernel.org/stable/c/172bf5a9ef70a399bb227809db78442dc01d9e48> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (mailing-list)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html> (mailing-list)

## Sources

- CVE List: [CVE-2025-23157](https://www.cve.org/CVERecord?id=CVE-2025-23157), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-23157](https://nvd.nist.gov/vuln/detail/CVE-2025-23157), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-23157 · Whole record: https://cve.day/CVE-2025-23157.json · Rebuilt by cve.day 2026-11-25T22:58:57.271Z
