{"id":"CVE-2025-40056","aliases":["CVE-2025-40056"],"related":[],"kind":"vulnerability","state":"published","title":"vhost: vringh: Fix copy_to_iter return value check","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nvhost: vringh: Corrección de la comprobación del valor de retorno de copy_to_iter\n\nEl valor de retorno de copy_to_iter no puede ser negativo; compruebe si la longitud copiada es igual a la longitud solicitada en lugar de comprobar valores negativos.","source":"nvd"}],"published":"2025-10-28T11:48:30.249Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"309bba39c945ac8ab8083ac05cd6cfe5822968e0","fixed":"bd71e7e0a612740e4de5524880c7cd40293af5f7","status":"affected"},{"type":"git","introduced":"309bba39c945ac8ab8083ac05cd6cfe5822968e0","fixed":"781226e11d5bdea0d69c7b5aa3cda874093c73b8","status":"affected"},{"type":"git","introduced":"309bba39c945ac8ab8083ac05cd6cfe5822968e0","fixed":"b3a950d236e98440c07405ba597b11bce56a8050","status":"affected"},{"type":"git","introduced":"309bba39c945ac8ab8083ac05cd6cfe5822968e0","fixed":"68aac2b335d474b938d154b9c95cbc58838cb2ce","status":"affected"},{"type":"git","introduced":"309bba39c945ac8ab8083ac05cd6cfe5822968e0","fixed":"439263376c2c4e126cac0d07e4987568de4eaba5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.156","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.112","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.53","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.3","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bd71e7e0a612740e4de5524880c7cd40293af5f7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/781226e11d5bdea0d69c7b5aa3cda874093c73b8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3a950d236e98440c07405ba597b11bce56a8050","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/68aac2b335d474b938d154b9c95cbc58838cb2ce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/439263376c2c4e126cac0d07e4987568de4eaba5","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40056","url":"https://www.cve.org/CVERecord?id=CVE-2025-40056","licence":"CVE Terms of Use","modified":"2026-05-11T21:41:37.648Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40056","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40056","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.938Z","epss":{"score":0.00214,"percentile":0.1244,"date":"2026-12-01T12:00:22.000Z"}}