{"id":"CVE-2025-38413","published":"2025-07-25T13:20:17Z","modified":"2026-08-05T12:01:42Z","title":"virtio-net: xsk: rx: fix the frame's length check","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio-net: xsk: rx: fix the frame's length check\n\nWhen calling buf_to_xdp, the len argument is the frame data's length\nwithout virtio header's length (vi->hdr_len). We check that len with\n\n\txsk_pool_get_rx_frame_size() + vi->hdr_len\n\nto ensure the provided len does not larger than the allocated chunk\nsize. The additional vi->hdr_len is because in virtnet_add_recvbuf_xsk,\nwe use part of XDP_PACKET_HEADROOM for virtio header and ask the vhost\nto start placing data from\n\n\thard_start + XDP_PACKET_HEADROOM - vi->hdr_len\nnot\n\thard_start + XDP_PACKET_HEADROOM\n\nBut the first buffer has virtio_header, so the maximum frame's length in\nthe first buffer can only be\n\n\txsk_pool_get_rx_frame_size()\nnot\n\txsk_pool_get_rx_frame_size() + vi->hdr_len\n\nlike in the current check.\n\nThis commit adds an additional argument to buf_to_xdp differentiate\nbetween the first buffer and other ones to correctly calculate the maximum\nframe's length.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00197,"percentile":0.09407,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/892f6ed9a4a38bb3360fdff091b9241cfa105b61","tags":[]},{"url":"https://git.kernel.org/stable/c/6013bb6bc24c2cac3f45b37a15b71b232a5b00ff","tags":[]},{"url":"https://git.kernel.org/stable/c/5177373c31318c3c6a190383bfd232e6cf565c36","tags":[]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":1.88},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a4e7ba7027012f009f22a68bcfde670f9298d3a4, < 892f6ed9a4a38bb3360fdff091b9241cfa105b61",">= a4e7ba7027012f009f22a68bcfde670f9298d3a4, < 6013bb6bc24c2cac3f45b37a15b71b232a5b00ff",">= a4e7ba7027012f009f22a68bcfde670f9298d3a4, < 5177373c31318c3c6a190383bfd232e6cf565c36"]},{"vendor":"Linux","product":"Linux","versions":["6.11"]}],"euvd":{"id":"EUVD-2025-22588","exploited":false,"provenance":"source"}}