CVE-2025-38314 Details
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.
A vulnerability in the Linux kernel's virtio-pci implementation has been addressed, concerning the admin command completion result size. The function virtio_pci_admin_dev_parts_get() was returning a result size that was 8 bytes larger than the actual data size. This discrepancy arose because the result_sg_size field was populated with the length from virtqueue_get_buf(), which included both the data size and an additional 8 bytes for status. This oversized result size led to two main issues: it appended 8 extra bytes of data to the transferred state, and it risked reading beyond the bounds of allocated buffers in the kernel, potentially causing failures. The vulnerability has been resolved by adjusting the result size to exclude the status bytes, and the fix has been validated through live migrations using virtio-net, virtio-net-transitional, and virtio-blk devices.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/920b6720bb63893b81516c0c45884a8350f9e4bf | kernel.org | Patch |
| https://git.kernel.org/stable/c/9ef41ebf787fcbde99ac404ae473f8467641f983 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.13, < 6.15.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 18, 2025 | Initial Analysis | [email protected] |
| Jul 10, 2025 | New CVE Received | kernel.org |