CVE-2025-38413
Last modified
CVE-2025-38413 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: virtio-net: xsk: rx: fix the frame's length check When calling buf_to_xdp, the len argument is the frame data's length without virtio header's length (vi->hdr_len). We check that len with xsk_pool_get_rx_frame_size() + vi->hdr_len to ensure the provided len does not larger than the allocated chunk size. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: virtio-net: xsk: rx: fix the frame's length check When calling buf_to_xdp, the len argument is the frame data's length without virtio header's length (vi->hdr_len). We check that len with xsk_pool_get_rx_frame_size() + vi->hdr_len to ensure the provided len does not larger than the allocated chunk size. The additional vi->hdr_len is because in virtnet_add_recvbuf_xsk, we use part of XDP_PACKET_HEADROOM for virtio header and ask the vhost to start placing data from hard_start + XDP_PACKET_HEADROOM - vi->hdr_len not hard_start + XDP_PACKET_HEADROOM But the first buffer has virtio_header, so the maximum frame's length in the first buffer can only be xsk_pool_get_rx_frame_size() not xsk_pool_get_rx_frame_size() + vi->hdr_len like in the current check. This commit adds an additional argument to buf_to_xdp differentiate between the first buffer and other ones to correctly calculate the maximum frame's length.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.11, < 6.12.37 | — |
| Linux | Linux Kernel | >= 6.13, < 6.15.6 | — |
| Linux | Linux Kernel | 6.16 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-38413?
How severe is CVE-2025-38413?
How do I fix CVE-2025-38413?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-38408In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38409In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-3841A vulnerability, which was classified as problematic, was fo…9.8
- CVE-2025-38410In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38411In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38412In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38414In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38415In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38416In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38417In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38418In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38419In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-38413?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
