{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2025-40056", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2025-04-16T07:20:57.158Z", "datePublished": "2025-10-28T11:48:30.249Z", "dateUpdated": "2026-05-11T21:41:37.648Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-05-11T21:41:37.648Z" }, "descriptions": [ { "lang": "en", "value": "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." } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/vhost/vringh.c" ], "versions": [ { "version": "309bba39c945ac8ab8083ac05cd6cfe5822968e0", "lessThan": "bd71e7e0a612740e4de5524880c7cd40293af5f7", "status": "affected", "versionType": "git" }, { "version": "309bba39c945ac8ab8083ac05cd6cfe5822968e0", "lessThan": "781226e11d5bdea0d69c7b5aa3cda874093c73b8", "status": "affected", "versionType": "git" }, { "version": "309bba39c945ac8ab8083ac05cd6cfe5822968e0", "lessThan": "b3a950d236e98440c07405ba597b11bce56a8050", "status": "affected", "versionType": "git" }, { "version": "309bba39c945ac8ab8083ac05cd6cfe5822968e0", "lessThan": "68aac2b335d474b938d154b9c95cbc58838cb2ce", "status": "affected", "versionType": "git" }, { "version": "309bba39c945ac8ab8083ac05cd6cfe5822968e0", "lessThan": "439263376c2c4e126cac0d07e4987568de4eaba5", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/vhost/vringh.c" ], "versions": [ { "version": "6.0", "status": "affected" }, { "version": "0", "lessThan": "6.0", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.156", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.112", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.53", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.17.3", "lessThanOrEqual": "6.17.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.18", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0", "versionEndExcluding": "6.1.156" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0", "versionEndExcluding": "6.6.112" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0", "versionEndExcluding": "6.12.53" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0", "versionEndExcluding": "6.17.3" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0", "versionEndExcluding": "6.18" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/bd71e7e0a612740e4de5524880c7cd40293af5f7" }, { "url": "https://git.kernel.org/stable/c/781226e11d5bdea0d69c7b5aa3cda874093c73b8" }, { "url": "https://git.kernel.org/stable/c/b3a950d236e98440c07405ba597b11bce56a8050" }, { "url": "https://git.kernel.org/stable/c/68aac2b335d474b938d154b9c95cbc58838cb2ce" }, { "url": "https://git.kernel.org/stable/c/439263376c2c4e126cac0d07e4987568de4eaba5" } ], "title": "vhost: vringh: Fix copy_to_iter return value check", "x_generator": { "engine": "bippy-1.2.0" } } } }