CVE-2026-46320: tap: free page on error paths in tap_get_user_xdp()
Published Jun 9, 2026
·
Updated
In the Linux kernel, the following vulnerability has been resolved:
tap: free page on error paths in tapgetuserxdp()
tapgetuserxdp() rejects a frame shorter than ETHHLEN with -EINVAL,
and returns -ENOMEM when buildskb() fails. Both paths jump to the err
label without freeing the page that vhostnetbuildxdp() allocated for
the frame. tapsendmsg() discards the per-buffer return value and always
returns 0, so vhosttxbatch() takes the success path and never frees
the page; each rejected frame in a batch leaks one page-frag chunk.
Free the page on both error paths, before the skb is built. This is the
tap counterpart of the same leak in tunxdpone().
Recommended actions to resolve this vulnerability, in priority order.
Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.6.143.1-1
Compensating control
In tap_get_user_xdp(), free the page allocated by vhost_net_build_xdp() on both error paths before building the skb, including when the frame is shorter than ETH_HLEN and when build_skb() returns -ENOMEM.
CVE-2026-46320 has a severity rating of 7.4, categorized as high.
2
How do I fix CVE-2026-46320?
To fix CVE-2026-46320, update your Linux kernel to the latest version that includes the patch for this vulnerability.
3
What systems are affected by CVE-2026-46320?
CVE-2026-46320 affects Linux kernel versions prior to the fix implemented in subsequent releases.
4
What type of vulnerability is CVE-2026-46320?
CVE-2026-46320 is a memory management vulnerability due to improper handling of error paths in the tap_get_user_xdp function.
5
What are the potential impacts of CVE-2026-46320?
The potential impact of CVE-2026-46320 includes denial of service, as the vulnerability could allow for resource exhaustion from not freeing allocated memory.
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.