CVE-2025-40051
published high CVSS 3.1 · 7.8vhost: vringh: Modify the return value check
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux309bba39c945ac8ab8083ac05cd6cfe5822968e0 to < db042925a5ab7a550b710addeadbf6f72e3a8a4b · 309bba39c945ac8ab8083ac05cd6cfe5822968e0 to < 78dc7362662fedaa1928fb8e4f27401c8322905d · 309bba39c945ac8ab8083ac05cd6cfe5822968e0 to < baa37b1c7e29546f79c39bef0d18c4edc9f39bb1 · 309bba39c945ac8ab8083ac05cd6cfe5822968e0 to < cfa0654402c06d086201a9ff167eb95da5844fc3 · 309bba39c945ac8ab8083ac05cd6cfe5822968e0 to < 82a8d0fda55b35361ee7f35b54fa2b66d7847d2b · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.0 (affected) · 0 to < 6.0 (unaffected · semver) · 6.1.156 through 6.1.* (unaffected · semver) · 6.6.112 through 6.6.* (unaffected · semver) · 6.12.53 through 6.12.* (unaffected · semver) · 6.17.3 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.158-1 | DSA-6053-1 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.158-1~deb11u1 | DLA-4379-1 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el10uek | ELSA-2025-28040 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 8 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-320.202.8.2.el8uek | ELSA-2026-50261 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el9uek | ELSA-2026-50261 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el9uek | ELSA-2026-50261 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el9uek | ELSA-2026-50261 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el9uek | ELSA-2025-28040 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el9uek | ELSA-2026-50261 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:6.12.0-106.55.4.1.el9uek | ELSA-2025-28040 |
| Oracle Linux | 9 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-320.202.8.2.el9uek | ELSA-2026-50261 |
| Oracle Linux | 9 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el9uek | ELSA-2026-50261 |
| Oracle Linux | 9 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el9uek | ELSA-2026-50261 |
| Oracle Linux | 9 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-320.202.8.2.el9uek | ELSA-2026-50261 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-320.202.8.2.el9uek | ELSA-2026-50261 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-106.55.4.1.el9uek | ELSA-2025-28040 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: vhost: vringh: Modify the return value check The return value of copy_from_iter and copy_to_iter can't be negative, check whether the copied lengths are equal.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable vringh IOTLB copy path is driven entirely through local ioctls on the `/dev/vhost-vdpa-N` character device (VHOST_IOTLB_UPDATE, vring setup, kick), with no network-facing consumer. A malicious guest cannot trigger it because it cannot unmap the host-side VA backing, so the attacker must be a local process. AC:L - The attacker deterministically forces the short copy by registering an IOTLB mapping over a shared file mapping and then truncating/unmapping it, so `copy_from_user` faults at a chosen offset every time — no race or unpredictable state is involved. The stale-stack values feeding `hdr.sector` and `struct vring_desc` are groomable with ordinary syscalls. PR:L - `vhost_vdpa_open()` and the vhost-vdpa ioctl handlers contain no `capable()`/`CAP_*` checks, so any user holding the device node can drive the full path, and in standard virtualization deployments that node is granted to an unprivileged VMM process. Only device *creation* needs admin, which is the normal host configuration, not an attacker step. UI:N - The attacker performs every step itself — map, truncate, kick the virtqueue — within its own process. No victim action or interaction is required. S:U - The corruption and disclosure occur in the host kernel that already governs the attacking process; this is standard local kernel compromise. No IOMMU, VM, or sandbox authority boundary is crossed by the bug itself. C:H - A silently-swallowed short pull causes `vdpasim_net_work()` to push a full PAGE_SIZE of the non-zeroed `kvmalloc` buffer `net->buffer` into the attacker's RX ring, directly disclosing stale kernel heap. Additionally the uninitialized `hdr.sector` drives `vringh_iov_push_iotlb(..., blk->buffer + offset, ...)` past the wrapped `VDPASIM_BLK_CAPACITY - start_sector` guard, giving an out-of-bounds kernel heap read echoed back to the attacker. I:H - In `vdpasim_blk_handle_req()` the uninitialized stack `hdr.sector` becomes the destination offset for `vringh_iov_pull_iotlb(..., blk->buffer + (sector << SECTOR_SHIFT), to_pull)`, an out-of-bounds kernel heap write of attacker-supplied data at a groomable offset. `__vringh_iov()` likewise builds iov entries whose `iov_base`/`iov_len` come from uninitialized kernel stack, giving further attacker-influenced memory corruption. A:H - Descriptors and request headers fabricated from uninitialized kernel stack yield bogus IOVAs and lengths up to 4 GB, and the resulting out-of-bounds heap accesses and invalid `pfn_to_page()`/page translations cause kernel oops or panic. The condition is repeatable at will from a single unprivileged process.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 309bba39c945ac8ab8083ac05cd6cfe5822968e0 to < db042925a5ab7a550b710addeadbf6f72e3a8a4b (affected · git)309bba39c945ac8ab8083ac05cd6cfe5822968e0 to < 78dc7362662fedaa1928fb8e4f27401c8322905d (affected · git)309bba39c945ac8ab8083ac05cd6cfe5822968e0 to < baa37b1c7e29546f79c39bef0d18c4edc9f39bb1 (affected · git)309bba39c945ac8ab8083ac05cd6cfe5822968e0 to < cfa0654402c06d086201a9ff167eb95da5844fc3 (affected · git)309bba39c945ac8ab8083ac05cd6cfe5822968e0 to < 82a8d0fda55b35361ee7f35b54fa2b66d7847d2b (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.0 (affected)0 to < 6.0 (unaffected · semver)6.1.156 through 6.1.* (unaffected · semver)6.6.112 through 6.6.* (unaffected · semver)6.12.53 through 6.12.* (unaffected · semver)6.17.3 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/78dc7362662fedaa1928fb8e4f27401c8322905d
- https://git.kernel.org/stable/c/82a8d0fda55b35361ee7f35b54fa2b66d7847d2b
- https://git.kernel.org/stable/c/baa37b1c7e29546f79c39bef0d18c4edc9f39bb1
- https://git.kernel.org/stable/c/cfa0654402c06d086201a9ff167eb95da5844fc3
- https://git.kernel.org/stable/c/db042925a5ab7a550b710addeadbf6f72e3a8a4b
Provider assertions
2Linux · cna
vhost: vringh: Modify the return value check
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 990e2dd155635dc98b215940c9f00537f92a924356331e8f0185a7cdf28ad667
- Ingested
- 15 Oct 2026, 23:29:36 UTC
- Source record
- Official CVE record