CVE-2025-23158
media: venus: hfi: add check to handle incorrect queue size
Reported by linux · Published May 1, 2025
In the Linux kernel, the following vulnerability has been resolved: media: venus: hfi: add check to handle incorrect queue size qsize represents size of shared queued between driver and video firmware. Firmware can modify this value to an invalid large value. In such situation, empty_space will be bigger than the space actually available. Since new_wr_idx is not checked, so the following code will result in an OOB write. ... qsize = qhdr->q_size if (wr_idx >= rd_idx) empty_space = qsize - (wr_idx - rd_idx) .... if (new_wr_idx < qsize) { memcpy(wr_ptr, packet, dwords << 2) --> OOB write Add check to ensure qsize is within the allocated size while reading and writing packets into the queue.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.15, 6.14.3, 6.13.12, 6.12.24, 6.6.88, 6.1.135, 5.15.181, 5.10.237, 5.4.293 |
| Linux | Linux | edb89d69b1438681daaf5ca90aed3242df94cc96, 679424f8b31446f90080befd0300ea915485b096, 40084302f639b3fe954398c5ba5ee556b7242b54, 4.13 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | d96d3f30c0f2f564f6922bf4ccdf4464992e31fb, d96d3f30c0f2f564f6922bf4ccdf4464992e31fb, d96d3f30c0f2f564f6922bf4ccdf4464992e31fb |
| Linux | Linux | 4.13, 0, 5.4.293 |
| linux | linux_kernel | 4.13, 4.13, 4.13 |
| Linux | Linux | 4.13, 0, 5.4.293 |
Timeline
- May 1, 2025 Coalition ESS Score (13 in total, the first dated here)
- May 1, 2025 CVE Published
- May 2, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (5 in total, the first dated here)
- Dec 21, 2025 Security Advisory (263 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (224 in total, the first dated here)
- Sep 21, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-23158
vulnetix vdb fixes CVE-2025-23158
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-23158/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart