{"id":"CVE-2025-40056","summary":"vhost: vringh: Fix copy_to_iter return value check","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nvhost: vringh: Fix copy_to_iter return value check\n\nThe return value of copy_to_iter can't be negative, check whether the\ncopied length is equal to the requested length instead of checking for\nnegative values.","modified":"2026-04-02T12:48:16.099825Z","published":"2025-10-28T11:48:30.249Z","related":["MGASA-2025-0309","MGASA-2025-0310","SUSE-SU-2025:21040-1","SUSE-SU-2025:21052-1","SUSE-SU-2025:21056-1","SUSE-SU-2025:21064-1","SUSE-SU-2025:21080-1","SUSE-SU-2025:21147-1","SUSE-SU-2025:21180-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4128-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4140-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4301-1","openSUSE-SU-2025:15702-1","openSUSE-SU-2025:20091-1","openSUSE-SU-2026:10301-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40056.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/439263376c2c4e126cac0d07e4987568de4eaba5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/68aac2b335d474b938d154b9c95cbc58838cb2ce"},{"type":"WEB","url":"https://git.kernel.org/stable/c/781226e11d5bdea0d69c7b5aa3cda874093c73b8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b3a950d236e98440c07405ba597b11bce56a8050"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bd71e7e0a612740e4de5524880c7cd40293af5f7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40056.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40056"},{"type":"PACKAGE","url":"https://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":"bd71e7e0a612740e4de5524880c7cd40293af5f7"},{"fixed":"781226e11d5bdea0d69c7b5aa3cda874093c73b8"},{"fixed":"b3a950d236e98440c07405ba597b11bce56a8050"},{"fixed":"68aac2b335d474b938d154b9c95cbc58838cb2ce"},{"fixed":"439263376c2c4e126cac0d07e4987568de4eaba5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40056.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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/cve-osv-conversion/osv-output/CVE-2025-40056.json"}}],"schema_version":"1.7.5"}