What’s Vulnerable › Vulnerabilities
CVE-2025-38314: virtio-pci: Fix result size returned for the admin command completion
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-07-10 · updated 2026-07-30
Description
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 virtio_pci_admin_dev_parts_get() is 8 bytes larger than the actual result data size. This occurs because the result_sg_size field of the command is filled with the result length from virtqueue_get_buf(), 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 virtqueue_get_buf(). This fix has been tested through live migrations with virtio-net, virtio-net-transitional, and virtio-blk devices.
Affected products
- Linux kernel: from 6.13 before 6.15.3 — fixed in 6.15.3
How to fix
Upgrade to a fixed version: Linux kernel 6.15.3. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/920b6720bb63893b81516c0c45884a8350f9e4bf
- https://git.kernel.org/stable/c/9ef41ebf787fcbde99ac404ae473f8467641f983
Get alerted when CVE-2025-38314 or the next vulnerability affects your stack