# CVE-2025-40051: vhost: vringh: Modify the return value check

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-10-28T11:48:27.279Z
- Modified: 2026-10-19T21:10:00.160Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 309bba39c945ac8ab8083ac05cd6cfe5822968e0 before db042925a5ab7a550b710addeadbf6f72e3a8a4b; from 309bba39c945ac8ab8083ac05cd6cfe5822968e0 before 78dc7362662fedaa1928fb8e4f27401c8322905d; from 309bba39c945ac8ab8083ac05cd6cfe5822968e0 before baa37b1c7e29546f79c39bef0d18c4edc9f39bb1; from 309bba39c945ac8ab8083ac05cd6cfe5822968e0 before cfa0654402c06d086201a9ff167eb95da5844fc3; from 309bba39c945ac8ab8083ac05cd6cfe5822968e0 before 82a8d0fda55b35361ee7f35b54fa2b66d7847d2b; 6.0 (not affected: before 6.0; from 6.1.156 up to 6.1.*; from 6.6.112 up to 6.6.*; from 6.12.53 up to 6.12.*; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/db042925a5ab7a550b710addeadbf6f72e3a8a4b>
- <https://git.kernel.org/stable/c/78dc7362662fedaa1928fb8e4f27401c8322905d>
- <https://git.kernel.org/stable/c/baa37b1c7e29546f79c39bef0d18c4edc9f39bb1>
- <https://git.kernel.org/stable/c/cfa0654402c06d086201a9ff167eb95da5844fc3>
- <https://git.kernel.org/stable/c/82a8d0fda55b35361ee7f35b54fa2b66d7847d2b>

## Sources

- CVE List: [CVE-2025-40051](https://www.cve.org/CVERecord?id=CVE-2025-40051), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-40051](https://nvd.nist.gov/vuln/detail/CVE-2025-40051), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40051 · Whole record: https://cve.day/CVE-2025-40051.json · Rebuilt by cve.day 2026-11-25T22:59:06.935Z
