CVE-2025-40056Published Oct 28, 2025 · Oct 28Updated Oct 28
vhost: vringh: Fix copy_to_iter return value check
Linux
Unrated
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
vhost: vringh: Fix copy_to_iter return value check
The return value of copy_to_iter can't be negative, check whether the copied length is equal to the requested length instead of checking for negative values.
From the CVE record · Linux
The Linux kernel's vhost vringh code incorrectly checks whether copy_to_iter returns a negative value, even though it cannot. It should check whether the copied length equals the requested length. The input does not specify what an attacker could do or the access conditions required.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.