CVE-2025-38314: virtio-pci: Fix result size returned for the admin command completion

Published Jul 10, 2025
·
Updated

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

2 affected components
Linux Linux kernel
Linux Linux kernel>=6.13<6.15.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch virtio-pci: Fix result size returned for the admin command completion

Event History

Jul 10, 2025
CVE Published
via MITRE·07:42 AM
Data Sourced
via MITRE·07:42 AM
DescriptionSeverity
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38314?

CVE-2025-38314 is classified as a high-severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-38314?

To fix CVE-2025-38314, update your Linux kernel to the patched version provided by your distribution.

3

What systems are affected by CVE-2025-38314?

CVE-2025-38314 affects the Linux kernel across various distributions that utilize the affected version.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203