CVE-2025-23158

Source
https://cve.org/CVERecord?id=CVE-2025-23158
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-23158.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-23158
Downstream
Related
Published
2025-05-01T12:55:43.804Z
Modified
2026-03-20T12:41:22.575961Z
Summary
media: venus: hfi: add check to handle incorrect queue size
Details

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, emptyspace will be bigger than the space actually available. Since newwridx is not checked, so the following code will result in an OOB write. ... qsize = qhdr->qsize

if (wridx >= rdidx) emptyspace = qsize - (wridx - rdidx) .... if (newwridx < qsize) { memcpy(wrptr, packet, dwords << 2) --> OOB write

Add check to ensure qsize is within the allocated size while reading and writing packets into the queue.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23158.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d96d3f30c0f2f564f6922bf4ccdf4464992e31fb
Fixed
1b86c1917e16bafbbb08ab90baaff533aa36c62d
Fixed
a45957bcde529169188929816775a575de77d84f
Fixed
32af5c1fdb9bc274f52ee0472d3b060b18e4aab4
Fixed
cf5f7bb4e0d786f4d9d50ae6b5963935eab71d75
Fixed
40084302f639b3fe954398c5ba5ee556b7242b54
Fixed
679424f8b31446f90080befd0300ea915485b096
Fixed
edb89d69b1438681daaf5ca90aed3242df94cc96
Fixed
101a86619aab42bb61f2253bbf720121022eab86
Fixed
69baf245b23e20efda0079238b27fc63ecf13de1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-23158.json"