CVE-2026-23140

Source
https://cve.org/CVERecord?id=CVE-2026-23140
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-23140.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-23140
Downstream
Published
2026-02-14T15:22:24.727Z
Modified
2026-03-20T12:47:24.838229Z
Summary
bpf, test_run: Subtract size of xdp_frame from allowed metadata size
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf, testrun: Subtract size of xdpframe from allowed metadata size

The xdpframe structure takes up part of the XDP frame headroom, limiting the size of the metadata. However, in bpftest_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 xdpupdateframefrombuff() call in xdptestruninitpage() 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 xdpupdateframefrombuff() 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23140.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b6f1f780b3932ae497ed85e79bc8a1e513883624
Fixed
e7440935063949d6f2c10f7328d960d0ff4bce90
Fixed
7c81ad5e580bd8441f8a521a8d34824ce6582ae5
Fixed
6447e697cfa8a43a8e491cb81bcc390d0f28f8ba
Fixed
31e37f44b60679d90b9f999c91371b15291be8e0
Fixed
e558cca217790286e799a8baacd1610bda31b261

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-23140.json"