CVE-2025-23158 json
media: venus: hfi: add check to handle incorrect queue size
published 2025-05-01 18 mo ago modified 2026-08-05 3 mo ago also EUVD-2025-13088
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.4.293, 5.10.237, 5.15.181, 6.1.135, 6.6.88, 6.12.24, 6.13.12, 6.14.3, 6.15
- linux Debian 12 6.1.135-1
- linux Debian 14, Debian 13 6.12.25-1
debian advisories DEBIAN-CVE-2025-23158
- linux Ubuntu 22.04 LTS 5.15.0-144.157
- linux Ubuntu 24.04 LTS 6.8.0-100.100
- linux-aws Ubuntu 22.04 LTS 5.15.0-1088.95
- linux-aws Ubuntu 24.04 LTS 6.8.0-1046.49
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1087.96
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1047.50
- linux-gke Ubuntu 22.04 LTS 5.15.0-1085.91
- linux-gke Ubuntu 24.04 LTS 6.8.0-1043.48
ubuntu advisories UBUNTU-CVE-2025-23158
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-syms-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-coco_debug SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-source-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-syms-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-source-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-64kb SLE Module for Basesystem 15 SP7 6.4.0-150700.53.6.1
suse advisories SUSE-SU-2025:02923-1SUSE-SU-2025:02333-1SUSE-SU-2025:02307-1SUSE-SU-2025:02254-1SUSE-SU-2025:02000-1SUSE-SU-2025:20413-1
- git.kernel.org/stable/c/1b86c1917e16bafbbb08ab90baaff533aa36c62d commit
- git.kernel.org/stable/c/a45957bcde529169188929816775a575de77d84f commit
- git.kernel.org/stable/c/32af5c1fdb9bc274f52ee0472d3b060b18e4aab4 commit
- git.kernel.org/stable/c/cf5f7bb4e0d786f4d9d50ae6b5963935eab71d75 commit
- git.kernel.org/stable/c/40084302f639b3fe954398c5ba5ee556b7242b54 commit
- git.kernel.org/stable/c/679424f8b31446f90080befd0300ea915485b096 commit
- git.kernel.org/stable/c/edb89d69b1438681daaf5ca90aed3242df94cc96 commit
- git.kernel.org/stable/c/101a86619aab42bb61f2253bbf720121022eab86 commit
- git.kernel.org/stable/c/69baf245b23e20efda0079238b27fc63ecf13de1 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-23158 updated
kernel: media: venus: hfi: add check to handle incorrect queue size
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
- Technology feeds
References
-
git.kernel.org
/stable/c/1b86c1917e16bafbbb08ab90baaff533aa36c62d
patch
-
git.kernel.org
/stable/c/a45957bcde529169188929816775a575de77d84f
patch
-
git.kernel.org
/stable/c/32af5c1fdb9bc274f52ee0472d3b060b18e4aab4
patch
-
git.kernel.org
/stable/c/cf5f7bb4e0d786f4d9d50ae6b5963935eab71d75
patch
-
git.kernel.org
/stable/c/40084302f639b3fe954398c5ba5ee556b7242b54
patch
-
git.kernel.org
/stable/c/679424f8b31446f90080befd0300ea915485b096
patch
-
git.kernel.org
/stable/c/edb89d69b1438681daaf5ca90aed3242df94cc96
patch
-
git.kernel.org
/stable/c/101a86619aab42bb61f2253bbf720121022eab86
patch
-
git.kernel.org
/stable/c/69baf245b23e20efda0079238b27fc63ecf13de1
patch
-
lists.debian.org
/debian-lts-announce/2025/05/msg00045.html
mailing-list
-
lists.debian.org
/debian-lts-announce/2025/05/msg00030.html
mailing-list
Sources
- CVE List CVE-2025-23158
- NVD CVE-2025-23158
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.