CVE-2025-38314: virtio-pci: Fix result size returned for the admin command completion
In the Linux kernel, the following vulnerability has been resolved:
virtio-pci: Fix result size returned for the admin command completion
The result size returned by virtiopciadmindevpartsget() is 8 bytes larger than the actual result data size. This occurs because the resultsgsize field of the command is filled with the result length from virtqueuegetbuf(), which includes both the data size and an additional 8 bytes of status.
This oversized result size causes two issues: 1. The state transferred to the destination includes 8 bytes of extra data at the end. 2. The allocated buffer in the kernel may be smaller than the returned size, leading to failures when reading beyond the allocated size.
The commit fixes this by subtracting the status size from the result of virtqueuegetbuf().
This fix has been tested through live migrations with virtio-net, virtio-net-transitional, and virtio-blk devices.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Linux kernelto a version that resolves this vulnerability.Patch virtio-pci: Fix result size returned for the admin command completion
Event History
Frequently Asked Questions
What is the severity of CVE-2025-38314?
CVE-2025-38314 is classified as a high-severity vulnerability in the Linux kernel.
How do I fix CVE-2025-38314?
To fix CVE-2025-38314, update your Linux kernel to the patched version provided by your distribution.
What systems are affected by CVE-2025-38314?
CVE-2025-38314 affects the Linux kernel across various distributions that utilize the affected version.
What are the potential impacts of exploiting CVE-2025-38314?
Exploitation of CVE-2025-38314 could lead to unexpected behavior or denial of service in applications using virtio devices.
Is there a workaround for CVE-2025-38314?
There are no widely known workarounds for CVE-2025-38314, so applying the update is the recommended solution.