# CVE-2025-40056: vhost: vringh: Fix copy_to_iter return value check

- Severity: not scored yet
- 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.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-10-28T11:48:30.249Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

vhost: vringh: Fix copy_to_iter return value check

The return value of copy_to_iter can't be negative, check whether the
copied length is equal to the requested length instead of checking for
negative values.

(As written by CVE List.)

## Affected

- Linux Linux: from 309bba39c945ac8ab8083ac05cd6cfe5822968e0 before bd71e7e0a612740e4de5524880c7cd40293af5f7; from 309bba39c945ac8ab8083ac05cd6cfe5822968e0 before 781226e11d5bdea0d69c7b5aa3cda874093c73b8; from 309bba39c945ac8ab8083ac05cd6cfe5822968e0 before b3a950d236e98440c07405ba597b11bce56a8050; from 309bba39c945ac8ab8083ac05cd6cfe5822968e0 before 68aac2b335d474b938d154b9c95cbc58838cb2ce; from 309bba39c945ac8ab8083ac05cd6cfe5822968e0 before 439263376c2c4e126cac0d07e4987568de4eaba5; 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/bd71e7e0a612740e4de5524880c7cd40293af5f7>
- <https://git.kernel.org/stable/c/781226e11d5bdea0d69c7b5aa3cda874093c73b8>
- <https://git.kernel.org/stable/c/b3a950d236e98440c07405ba597b11bce56a8050>
- <https://git.kernel.org/stable/c/68aac2b335d474b938d154b9c95cbc58838cb2ce>
- <https://git.kernel.org/stable/c/439263376c2c4e126cac0d07e4987568de4eaba5>

## Sources

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

---

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