In the Linux kernel, the following vulnerability has been resolved:
vhost: vringh: Fix copytoiter return value check
The return value of copytoiter can't be negative, check whether the copied length is equal to the requested length instead of checking for negative values.
[
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"function_hash": "113561089677133138507811282009072964975",
"length": 832.0
},
"id": "CVE-2025-40056-0a0e051f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68aac2b335d474b938d154b9c95cbc58838cb2ce",
"signature_type": "Function",
"target": {
"function": "copy_to_iotlb",
"file": "drivers/vhost/vringh.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"line_hashes": [
"325333494264381554976861871295543544014",
"319816176767373300169182612109245364423",
"112561641557098135457465068608147262978",
"92506697410768833421452447103802045169",
"136538038883551464138205546962713074497",
"305133726458289697760241478908080701256",
"288017134802048643746943572894863233089",
"95634565832113836475841983914790107483",
"105148109034094297664862969763350552374",
"214390007325693831756708070536182330147"
],
"threshold": 0.9
},
"id": "CVE-2025-40056-535f8da3",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@439263376c2c4e126cac0d07e4987568de4eaba5",
"signature_type": "Line",
"target": {
"file": "drivers/vhost/vringh.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"function_hash": "113561089677133138507811282009072964975",
"length": 832.0
},
"id": "CVE-2025-40056-6000e67d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@781226e11d5bdea0d69c7b5aa3cda874093c73b8",
"signature_type": "Function",
"target": {
"function": "copy_to_iotlb",
"file": "drivers/vhost/vringh.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"line_hashes": [
"244157655514921494667462726995462862509",
"319816176767373300169182612109245364423",
"112561641557098135457465068608147262978",
"271790072424086485895918404166319916561",
"306816149625141144307415394184024091857",
"169801788148372364550821131382868394439",
"131978183896629331117674085263185539065",
"95634565832113836475841983914790107483",
"105148109034094297664862969763350552374",
"214390007325693831756708070536182330147"
],
"threshold": 0.9
},
"id": "CVE-2025-40056-7912241a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bd71e7e0a612740e4de5524880c7cd40293af5f7",
"signature_type": "Line",
"target": {
"file": "drivers/vhost/vringh.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"line_hashes": [
"325333494264381554976861871295543544014",
"319816176767373300169182612109245364423",
"112561641557098135457465068608147262978",
"92506697410768833421452447103802045169",
"136538038883551464138205546962713074497",
"305133726458289697760241478908080701256",
"288017134802048643746943572894863233089",
"95634565832113836475841983914790107483",
"105148109034094297664862969763350552374",
"214390007325693831756708070536182330147"
],
"threshold": 0.9
},
"id": "CVE-2025-40056-7ab5c6e4",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68aac2b335d474b938d154b9c95cbc58838cb2ce",
"signature_type": "Line",
"target": {
"file": "drivers/vhost/vringh.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"function_hash": "110306808188608533658172988019719232582",
"length": 574.0
},
"id": "CVE-2025-40056-91c31ab8",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bd71e7e0a612740e4de5524880c7cd40293af5f7",
"signature_type": "Function",
"target": {
"function": "copy_to_iotlb",
"file": "drivers/vhost/vringh.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"line_hashes": [
"325333494264381554976861871295543544014",
"319816176767373300169182612109245364423",
"112561641557098135457465068608147262978",
"92506697410768833421452447103802045169",
"136538038883551464138205546962713074497",
"305133726458289697760241478908080701256",
"288017134802048643746943572894863233089",
"95634565832113836475841983914790107483",
"105148109034094297664862969763350552374",
"214390007325693831756708070536182330147"
],
"threshold": 0.9
},
"id": "CVE-2025-40056-9ee03b13",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3a950d236e98440c07405ba597b11bce56a8050",
"signature_type": "Line",
"target": {
"file": "drivers/vhost/vringh.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"function_hash": "113561089677133138507811282009072964975",
"length": 832.0
},
"id": "CVE-2025-40056-b765a8d1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3a950d236e98440c07405ba597b11bce56a8050",
"signature_type": "Function",
"target": {
"function": "copy_to_iotlb",
"file": "drivers/vhost/vringh.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"function_hash": "113561089677133138507811282009072964975",
"length": 832.0
},
"id": "CVE-2025-40056-c6f59170",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@439263376c2c4e126cac0d07e4987568de4eaba5",
"signature_type": "Function",
"target": {
"function": "copy_to_iotlb",
"file": "drivers/vhost/vringh.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"line_hashes": [
"325333494264381554976861871295543544014",
"319816176767373300169182612109245364423",
"112561641557098135457465068608147262978",
"92506697410768833421452447103802045169",
"136538038883551464138205546962713074497",
"305133726458289697760241478908080701256",
"288017134802048643746943572894863233089",
"95634565832113836475841983914790107483",
"105148109034094297664862969763350552374",
"214390007325693831756708070536182330147"
],
"threshold": 0.9
},
"id": "CVE-2025-40056-f5bd87ea",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@781226e11d5bdea0d69c7b5aa3cda874093c73b8",
"signature_type": "Line",
"target": {
"file": "drivers/vhost/vringh.c"
}
}
]