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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-05-01 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2025-23157, DEBIAN-CVE-2025-23157
- Record: https://cvemate.com/vulnerability/CVE-2025-23157 · JSON: https://cvemate.com/vulnerability/CVE-2025-23157/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.228%, percentile 14.472%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 139)

- debian linux (Debian): \< 6.1.135-1 \| \< 6.12.25-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-144.157 \| \< 6.8.0-100.100
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1088.95 \| \< 6.8.0-1046.49
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1088.95~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1046.49~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1088.95+fips1 \| \< 6.8.0-1046.49+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1094.103 \| \< 6.8.0-1046.52
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1094.103~20.04.1

## References (first 20 of 45)

- <https://git.kernel.org/stable/c/e5133a0b25463674903fdc0528e0a29b7267130e>
- <https://git.kernel.org/stable/c/2b8b9ea4e26a501eb220ea189e42b4527e65bdfa>
- <https://git.kernel.org/stable/c/1ad6aa1464b8a5ce5c194458315021e8d216108e>
- <https://git.kernel.org/stable/c/26bbedd06d85770581fda5d78e78539bb088fad1>
- <https://git.kernel.org/stable/c/d4d88ece4ba91df5b02f1d3f599650f9e9fc0f45>
- <https://git.kernel.org/stable/c/53e376178ceacca3ef1795038b22fc9ef45ff1d3>
- <https://git.kernel.org/stable/c/b2541e29d82da8a0df728aadec3e0a8db55d517b>
- <https://git.kernel.org/stable/c/cb5be9039f91979f8a2fac29f529f746d7848f3e>
- <https://git.kernel.org/stable/c/172bf5a9ef70a399bb227809db78442dc01d9e48>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://ubuntu.com/security/CVE-2025-23157>
- <https://www.cve.org/CVERecord?id=CVE-2025-23157>
- <https://git.kernel.org/linus/172bf5a9ef70a399bb227809db78442dc01d9e48>
- <https://ubuntu.com/security/notices/USN-7594-1>
- <https://ubuntu.com/security/notices/USN-7594-2>
- <https://ubuntu.com/security/notices/USN-7594-3>
- <https://ubuntu.com/security/notices/USN-7654-1>
- <https://ubuntu.com/security/notices/USN-7654-2>
- <https://ubuntu.com/security/notices/USN-7654-3>

---

Data as of 2026-12-05T04:45:16.033Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
