CVE-2025-40051

Source
https://cve.org/CVERecord?id=CVE-2025-40051
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40051.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40051
Downstream
Related
Published
2025-10-28T11:48:27.279Z
Modified
2026-03-20T12:43:09.661700Z
Summary
vhost: vringh: Modify the return value check
Details

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

vhost: vringh: Modify the return value check

The return value of copyfromiter and copytoiter can't be negative, check whether the copied lengths are equal.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40051.json"
}
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
309bba39c945ac8ab8083ac05cd6cfe5822968e0
Fixed
db042925a5ab7a550b710addeadbf6f72e3a8a4b
Fixed
78dc7362662fedaa1928fb8e4f27401c8322905d
Fixed
baa37b1c7e29546f79c39bef0d18c4edc9f39bb1
Fixed
cfa0654402c06d086201a9ff167eb95da5844fc3
Fixed
82a8d0fda55b35361ee7f35b54fa2b66d7847d2b

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.0.0
Fixed
6.1.156
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.112
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.53
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.3

Database specific

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