CVE-2026-23140
bpf, test_run: Subtract size of xdp_frame from allowed metadata size
Check your servers for CVE-2026-23140
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-23140 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.61% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b6f1f780b3932ae497ed85e79bc8a1e513883624, before e7440935063949d6f2c10f7328d960d0ff4bce90 affected from b6f1f780b3932ae497ed85e79bc8a1e513883624, before 7c81ad5e580bd8441f8a521a8d34824ce6582ae5 affected from b6f1f780b3932ae497ed85e79bc8a1e513883624, before 6447e697cfa8a43a8e491cb81bcc390d0f28f8ba affected from b6f1f780b3932ae497ed85e79bc8a1e513883624, before 31e37f44b60679d90b9f999c91371b15291be8e0 affected from b6f1f780b3932ae497ed85e79bc8a1e513883624, before e558cca217790286e799a8baacd1610bda31b261
Other versions: unaffected
|
| Linux |
affected 5.18 unaffected before 5.18 unaffected from 6.1.161 up to and including 6.1.* unaffected from 6.6.121 up to and including 6.6.* unaffected from 6.12.66 up to and including 6.12.* unaffected from 6.18.6 up to and including 6.18.* unaffected 6.19 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-23140 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-23140
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-23140
trivy image --scanners vuln IMAGE | grep CVE-2026-23140
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e7440935063949d6f2c10f7328d960d0ff4bce90 git.kernel.org
- https://git.kernel.org/stable/c/7c81ad5e580bd8441f8a521a8d34824ce6582ae5 git.kernel.org
- https://git.kernel.org/stable/c/6447e697cfa8a43a8e491cb81bcc390d0f28f8ba git.kernel.org
- https://git.kernel.org/stable/c/31e37f44b60679d90b9f999c91371b15291be8e0 git.kernel.org
- https://git.kernel.org/stable/c/e558cca217790286e799a8baacd1610bda31b261 git.kernel.org
Source: the record CVE-2026-23140 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse