CVE-2026-23140
Last modified
CVE-2026-23140 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.12% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.18, < 6.1.161 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.121 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.66 | — |
| Linux | Linux Kernel | >= 6.13, < 6.18.6 | — |
| Linux | Linux Kernel | 6.19 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-23140?
How severe is CVE-2026-23140?
How do I fix CVE-2026-23140?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-23135In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23136In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23137In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23138In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23139In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-2314Heap buffer overflow in Codecs in Google Chrome prior to 145…8.8
- CVE-2026-23141In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23142In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23143In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23144In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23145In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23146In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2026-23140?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
