CVE-2025-23157 media: venus: hfi_parser: add check to avoid out of bound access
A missing bounds check in the Linux kernel Venus media driver allows out-of-bounds access via manipulated firmware payloads, potentially leading to code execution or crashes.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-23157?
CVE-2025-23157 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 1 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-125
Which versions are affected by CVE-2025-23157?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2025-23157?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-23157 being exploited?
There is no known exploitation of CVE-2025-23157 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2025-23157, DEBIAN-CVE-2025-23157, GHSA-mr7g-g7q3-wvpx, ROOT-OS-DEBIAN-12-CVE-2025-23157, ROOT-OS-UBUNTU-2204-CVE-2025-23157, ROOT-OS-UBUNTU-2404-CVE-2025-23157 and 1 more.