CVE-2026-46322

HIGH

tun: free page on build_skb failure in tun_xdp_one()

Title source: cna
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: tun: free page on build_skb failure in tun_xdp_one() When build_skb() fails in tun_xdp_one(), the function sets ret to -ENOMEM and jumps to the out label, which returns without freeing the page that vhost_net_build_xdp() allocated for the frame. As with the short-frame rejection path, tun_sendmsg() discards the per-buffer error and still returns total_len, so vhost_tx_batch() takes the success path and never frees the page. Each build_skb() failure in a batch leaks one page-frag chunk. Free the page before taking the error path, matching the put_page() the other error exits of tun_xdp_one() already perform.

Scores

CVSS v3 7.1
EPSS 0.0013
EPSS Percentile 2.9%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H

Details

Status published
Products (28)
linux/Kernel 4.20.0 - 5.10.259linux
linux/Kernel 5.11.0 - 5.15.210linux
linux/Kernel 5.16.0 - 6.1.176linux
linux/Kernel 6.13.0 - 6.18.35linux
linux/Kernel 6.19.0 - 7.0.12linux
linux/Kernel 6.2.0 - 6.6.143linux
linux/Kernel 6.7.0 - 6.12.93linux
Linux/Linux < 4.20
Linux/Linux 043d222f93ab8c76b56a3b315cd8692e35affb6c - 2638a9c1521905bb5c5d1e95c8fbc09f79148ed7
Linux/Linux 043d222f93ab8c76b56a3b315cd8692e35affb6c - 26fe549b5192536b6c1c68a2dfdc8c0dcf9fa4a9
... and 18 more
Published Jun 09, 2026
Tracked Since Jun 09, 2026