CVE-2026-23140

MEDIUM

Linux Kernel 5.18.0-6.1.161 to 6.13.0-6.18.6 - Use-After-Free via XDP Frame Metadata Size Mismatch

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: bpf, test_run: Subtract size of xdp_frame from allowed metadata size The xdp_frame structure takes up part of the XDP frame headroom, limiting the size of the metadata. However, in bpf_test_run, we don't take this into account, which makes it possible for userspace to supply a metadata size that is too large (taking up the entire headroom). If userspace supplies such a large metadata size in live packet mode, the xdp_update_frame_from_buff() call in xdp_test_run_init_page() call will fail, after which packet transmission proceeds with an uninitialised frame structure, leading to the usual Bad Stuff. The commit in the Fixes tag fixed a related bug where the second check in xdp_update_frame_from_buff() could fail, but did not add any additional constraints on the metadata size. Complete the fix by adding an additional check on the metadata size. Reorder the checks slightly to make the logic clearer and add a comment.

Scores

CVSS v3 5.5
EPSS 0.0002
EPSS Percentile 4.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

Status published
Products (18)
linux/Kernel 5.18.0 - 6.1.161linux
linux/Kernel 6.13.0 - 6.18.6linux
linux/Kernel 6.2.0 - 6.6.121linux
linux/Kernel 6.7.0 - 6.12.66linux
Linux/Linux < 5.18
Linux/Linux 5.18
Linux/Linux 6.1.161 - 6.1.*
Linux/Linux 6.12.66 - 6.12.*
Linux/Linux 6.18.6 - 6.18.*
Linux/Linux 6.19
... and 8 more
Published Feb 14, 2026
Tracked Since Feb 18, 2026