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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-05-01T12:55:43.193Z
- **Modified:** 2026-08-05T11:57:08.273Z

## Who should check

- Anyone running Linux \>= 1a73374a04e555103e5369429a30999114001dda, \< e5133a0b25463674903fdc0528e0a29b7267130e; \>= 1a73374a04e555103e5369429a30999114001dda, \< 2b8b9ea4e26a501eb220ea189e42b4527e65bdfa; \>= 1a73374a04e555103e5369429a30999114001dda, \< 1ad6aa1464b8a5ce5c194458315021e8d216108e; \>= 1a73374a04e555103e5369429a30999114001dda, \< 26bbedd06d85770581fda5d78e78539bb088fad1; \>= 1a73374a04e555103e5369429a30999114001dda, \< d4d88ece4ba91df5b02f1d3f599650f9e9fc0f45; \>= 1a73374a04e555103e5369429a30999114001dda, \< 53e376178ceacca3ef1795038b22fc9ef45ff1d3; \>= 1a73374a04e555103e5369429a30999114001dda, \< b2541e29d82da8a0df728aadec3e0a8db55d517b; \>= 1a73374a04e555103e5369429a30999114001dda, \< cb5be9039f91979f8a2fac29f529f746d7848f3e; \>= 1a73374a04e555103e5369429a30999114001dda, \< 172bf5a9ef70a399bb227809db78442dc01d9e48
- Anyone running Linux 4.19

## 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 and fixed versions

- Linux: \>= 1a73374a04e555103e5369429a30999114001dda, \< e5133a0b25463674903fdc0528e0a29b7267130e; \>= 1a73374a04e555103e5369429a30999114001dda, \< 2b8b9ea4e26a501eb220ea189e42b4527e65bdfa; \>= 1a73374a04e555103e5369429a30999114001dda, \< 1ad6aa1464b8a5ce5c194458315021e8d216108e; \>= 1a73374a04e555103e5369429a30999114001dda, \< 26bbedd06d85770581fda5d78e78539bb088fad1; \>= 1a73374a04e555103e5369429a30999114001dda, \< d4d88ece4ba91df5b02f1d3f599650f9e9fc0f45; \>= 1a73374a04e555103e5369429a30999114001dda, \< 53e376178ceacca3ef1795038b22fc9ef45ff1d3; \>= 1a73374a04e555103e5369429a30999114001dda, \< b2541e29d82da8a0df728aadec3e0a8db55d517b; \>= 1a73374a04e555103e5369429a30999114001dda, \< cb5be9039f91979f8a2fac29f529f746d7848f3e; \>= 1a73374a04e555103e5369429a30999114001dda, \< 172bf5a9ef70a399bb227809db78442dc01d9e48 (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- Upgrade Linux to 172bf5a9ef70a399bb227809db78442dc01d9e48 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-23157. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-23157.md
Affected: Linux >= 1a73374a04e555103e5369429a30999114001dda, < e5133a0b25463674903fdc0528e0a29b7267130e; >= 1a73374a04e555103e5369429a30999114001dda, < 2b8b9ea4e26a501eb220ea189e42b4527e65bdfa; >= 1a73374a04e555103e5369429a30999114001dda, < 1ad6aa1464b8a5ce5c194458315021e8d216108e; >= 1a73374a04e555103e53694…
Fixed in: Linux 2b8b9ea4e26a501eb220ea189e42b4527e65bdfa, Linux 1ad6aa1464b8a5ce5c194458315021e8d216108e, Linux 26bbedd06d85770581fda5d78e78539bb088fad1, Linux 53e376178ceacca3ef1795038b22fc9ef45ff1d3, Linux 172bf5a9ef70a399bb227809db78442dc01d9e48

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-23157 being exploited?

There is no confirmed exploitation: CVE-2025-23157 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-23157?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-23157?

Linux \>= 1a73374a04e555103e5369429a30999114001dda, \< e5133a0b25463674903fdc0528e0a29b7267130e; \>= 1a73374a04e555103e5369429a30999114001dda, \< 2b8b9ea4e26a501eb220ea189e42b4527e65bdfa; \>= 1a73374a04e555103e5369429a30999114001dda, \< 1ad6aa1464b8a5ce5c194458315021e8d216108e; \>= 1a73374a04e555103e5369429a30999114001dda, \< 26bbedd06d85770581fda5d78e78539bb088fad1; \>= 1a73374a04e555103e5369429a30999114001dda, \< d4d88ece4ba91df5b02f1d3f599650f9e9fc0f45; \>= 1a73374a04e555103e5369429a30999114001dda, \< 53e376178ceacca3ef1795038b22fc9ef45ff1d3; \>= 1a73374a04e555103e5369429a30999114001dda, \< b2541e29d82da8a0df728aadec3e0a8db55d517b; \>= 1a73374a04e555103e5369429a30999114001dda, \< cb5be9039f91979f8a2fac29f529f746d7848f3e; \>= 1a73374a04e555103e5369429a30999114001dda, \< 172bf5a9ef70a399bb227809db78442dc01d9e48; Linux 4.19.

### Is there a fix for CVE-2025-23157?

Yes. Fixed in Linux 2b8b9ea4e26a501eb220ea189e42b4527e65bdfa, Linux 1ad6aa1464b8a5ce5c194458315021e8d216108e, Linux 26bbedd06d85770581fda5d78e78539bb088fad1, Linux 53e376178ceacca3ef1795038b22fc9ef45ff1d3, Linux 172bf5a9ef70a399bb227809db78442dc01d9e48. Upgrade Linux to 172bf5a9ef70a399bb227809db78442dc01d9e48 or later.

### How do I check if I'm affected by CVE-2025-23157?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-23157>

HTML: <https://flawdb.com/CVE-2025-23157> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-23157>
