CVE-2025-38413: virtio-net: xsk: rx: fix the frame's length check

Published Jul 25, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

virtio-net: xsk: rx: fix the frame's length check

When calling buftoxdp, the len argument is the frame data's length without virtio header's length (vi->hdrlen). We check that len with

xskpoolgetrxframesize() + vi->hdrlen

to ensure the provided len does not larger than the allocated chunk size. The additional vi->hdrlen is because in virtnetaddrecvbufxsk, we use part of XDPPACKETHEADROOM for virtio header and ask the vhost to start placing data from

hardstart + XDPPACKETHEADROOM - vi->hdrlen not hardstart + XDPPACKETHEADROOM

But the first buffer has virtioheader, so the maximum frame's length in the first buffer can only be

xskpoolgetrxframesize() not xskpoolgetrxframesize() + vi->hdrlen

like in the current check.

This commit adds an additional argument to buftoxdp differentiate between the first buffer and other ones to correctly calculate the maximum frame's length.

Affected Software

7 affected components
Linux Linux kernel
Linux Linux kernel>=6.11<6.12.37
Linux Linux kernel>=6.13<6.15.6
Linux Linux kernel=6.16-rc1
Linux Linux kernel=6.16-rc2
Linux Linux kernel=6.16-rc3
Linux Linux kernel=6.16-rc4

Event History

Jul 25, 2025
CVE Published
via MITRE·01:20 PM
Data Sourced
via MITRE·01:20 PM
DescriptionSeverity
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38413?

CVE-2025-38413 has been classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-38413?

To fix CVE-2025-38413, update your Linux kernel to the latest version where this vulnerability has been addressed.

3

What systems are affected by CVE-2025-38413?

CVE-2025-38413 affects the Linux kernel, particularly versions that utilize the virtio-net networking stack.

4

What is the impact of CVE-2025-38413?

The impact of CVE-2025-38413 includes potential memory corruption and denial of service in network processing.

5

Is CVE-2025-38413 being actively exploited?

As of now, there are no public reports indicating active exploitation of CVE-2025-38413.

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