# CVE-2026-23140: bpf, test\_run: Subtract size of xdp\_frame from allowed metadata size

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **Published:** 2026-02-14T15:22:24.727Z
- **Modified:** 2026-11-05T22:18:03.930Z

## Who should check

- Anyone running Linux \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< e7440935063949d6f2c10f7328d960d0ff4bce90; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< 7c81ad5e580bd8441f8a521a8d34824ce6582ae5; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< 6447e697cfa8a43a8e491cb81bcc390d0f28f8ba; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< 31e37f44b60679d90b9f999c91371b15291be8e0; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< e558cca217790286e799a8baacd1610bda31b261
- Anyone running Linux 5.18

## 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.

## Affected and fixed versions

- Linux: \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< e7440935063949d6f2c10f7328d960d0ff4bce90; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< 7c81ad5e580bd8441f8a521a8d34824ce6582ae5; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< 6447e697cfa8a43a8e491cb81bcc390d0f28f8ba; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< 31e37f44b60679d90b9f999c91371b15291be8e0; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< e558cca217790286e799a8baacd1610bda31b261 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23140. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23140.md
Affected: Linux >= b6f1f780b3932ae497ed85e79bc8a1e513883624, < e7440935063949d6f2c10f7328d960d0ff4bce90; >= b6f1f780b3932ae497ed85e79bc8a1e513883624, < 7c81ad5e580bd8441f8a521a8d34824ce6582ae5; >= b6f1f780b3932ae497ed85e79bc8a1e513883624, < 6447e697cfa8a43a8e491cb81bcc390d0f28f8ba; >= b6f1f780b3932ae497ed85e…
Fixed in: Linux 7c81ad5e580bd8441f8a521a8d34824ce6582ae5, Linux 6447e697cfa8a43a8e491cb81bcc390d0f28f8ba, Linux 31e37f44b60679d90b9f999c91371b15291be8e0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23140 being exploited?

There is no confirmed exploitation: CVE-2026-23140 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23140?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23140?

Linux \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< e7440935063949d6f2c10f7328d960d0ff4bce90; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< 7c81ad5e580bd8441f8a521a8d34824ce6582ae5; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< 6447e697cfa8a43a8e491cb81bcc390d0f28f8ba; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< 31e37f44b60679d90b9f999c91371b15291be8e0; \>= b6f1f780b3932ae497ed85e79bc8a1e513883624, \< e558cca217790286e799a8baacd1610bda31b261; Linux 5.18.

### Is there a fix for CVE-2026-23140?

Yes. Fixed in Linux 7c81ad5e580bd8441f8a521a8d34824ce6582ae5, Linux 6447e697cfa8a43a8e491cb81bcc390d0f28f8ba, Linux 31e37f44b60679d90b9f999c91371b15291be8e0. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-23140?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e7440935063949d6f2c10f7328d960d0ff4bce90>
- patch: <https://git.kernel.org/stable/c/7c81ad5e580bd8441f8a521a8d34824ce6582ae5>
- patch: <https://git.kernel.org/stable/c/6447e697cfa8a43a8e491cb81bcc390d0f28f8ba>
- patch: <https://git.kernel.org/stable/c/31e37f44b60679d90b9f999c91371b15291be8e0>
- patch: <https://git.kernel.org/stable/c/e558cca217790286e799a8baacd1610bda31b261>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23140>

HTML: <https://flawdb.com/CVE-2026-23140> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23140>
