# CVE-2026-72338: net/sched: act\_pedit: fix TOCTOU heap OOB write in tc offload

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.18% (percentile 4, 2026-11-28)
- **Published:** 2026-08-15T05:55:45.823Z
- **Modified:** 2026-10-30T13:19:49.890Z

## Who should check

- Anyone running Linux \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 1afdf2268b71251ea70d80bd8232a2f022e62a73; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 0d8532a5e972a5351cf4ee4a435e0d65cbba8f23; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 27488e1a7f19757e6146edca9458ed4ffc545557; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 6f9b23eb92a894ae1118893996943990ee0b860e; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 8e49cd891bda447c68122d672510a604a8bb6b24; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 8b519cbcabe836a441369fbec1a8a6518a709251
- Anyone running Linux 4.11

## Description

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

net/sched: act\_pedit: fix TOCTOU heap OOB write in tc offload

There is a TOCTOU race condition in flower lockless approach between sizing
a flow\_rule buffer and filling it.
zdi-disclosures@trendmicro.com reports:
The cls\_flower classifier operates with TCF\_PROTO\_OPS\_DOIT\_UNLOCKED
(fl\_change runs without RTNL), while RTM\_NEWACTION holds RTNL, so the
independent locking domains make the race reachable in practice.  KASAN
confirms:
  BUG: KASAN: slab-out-of-bounds in tcf\_pedit\_offload\_act\_setup+0x81b/0x930
  Write of size 4 at addr ffff888001f27520 by task poc-toctou/312
  The buggy address is located 0 bytes to the right of
   allocated 288-byte region \[ffff888001f27400, ffff888001f27520)
   (cache kmalloc-512)

Note: The result is a heap OOB write attacker-controlled content into the
adjacent slab object (requires CAP\_NET\_ADMIN).

The fix introduces reading tcfp\_nkeys under act-\>tcfa\_lock in all places
using a new tcf\_pedit\_nkeys\_locked() which replaces the old tcf\_pedit\_nkeys().
Additionally we close the remaining TOCTOU window between the sizing read and
the fill reads by more careful accounting.
Rather than silently truncating the key count, which leads to incorrect
action semantics offloaded to hardware and secondary OOB writes if
the remaining capacity is zero or consumed by prior actions, we enforce
remaining capacity checks and return -ENOSPC if the required space exceeds
the remaining capacity.

## Affected and fixed versions

- Linux: \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 1afdf2268b71251ea70d80bd8232a2f022e62a73; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 0d8532a5e972a5351cf4ee4a435e0d65cbba8f23; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 27488e1a7f19757e6146edca9458ed4ffc545557; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 6f9b23eb92a894ae1118893996943990ee0b860e; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 8e49cd891bda447c68122d672510a604a8bb6b24; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 8b519cbcabe836a441369fbec1a8a6518a709251 (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

- Upgrade Linux to 8b519cbcabe836a441369fbec1a8a6518a709251 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-72338.md
Affected: Linux >= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, < 1afdf2268b71251ea70d80bd8232a2f022e62a73; >= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, < 0d8532a5e972a5351cf4ee4a435e0d65cbba8f23; >= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, < 27488e1a7f19757e6146edca9458ed4ffc545557; >= 71d0ed7079dffbc5cd0941d…
Fixed in: Linux 1afdf2268b71251ea70d80bd8232a2f022e62a73, Linux 0d8532a5e972a5351cf4ee4a435e0d65cbba8f23, Linux 27488e1a7f19757e6146edca9458ed4ffc545557, Linux 6f9b23eb92a894ae1118893996943990ee0b860e, Linux 8e49cd891bda447c68122d672510a604a8bb6b24, Linux 8b519cbcabe836a441369fbec1a8a6518a709251

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-72338 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 1afdf2268b71251ea70d80bd8232a2f022e62a73; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 0d8532a5e972a5351cf4ee4a435e0d65cbba8f23; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 27488e1a7f19757e6146edca9458ed4ffc545557; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 6f9b23eb92a894ae1118893996943990ee0b860e; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 8e49cd891bda447c68122d672510a604a8bb6b24; \>= 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, \< 8b519cbcabe836a441369fbec1a8a6518a709251; Linux 4.11.

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

Yes. Fixed in Linux 1afdf2268b71251ea70d80bd8232a2f022e62a73, Linux 0d8532a5e972a5351cf4ee4a435e0d65cbba8f23, Linux 27488e1a7f19757e6146edca9458ed4ffc545557, Linux 6f9b23eb92a894ae1118893996943990ee0b860e, Linux 8e49cd891bda447c68122d672510a604a8bb6b24, Linux 8b519cbcabe836a441369fbec1a8a6518a709251. Upgrade Linux to 8b519cbcabe836a441369fbec1a8a6518a709251 or later.

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

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

- other: <https://git.kernel.org/stable/c/1afdf2268b71251ea70d80bd8232a2f022e62a73>
- other: <https://git.kernel.org/stable/c/0d8532a5e972a5351cf4ee4a435e0d65cbba8f23>
- other: <https://git.kernel.org/stable/c/27488e1a7f19757e6146edca9458ed4ffc545557>
- other: <https://git.kernel.org/stable/c/6f9b23eb92a894ae1118893996943990ee0b860e>
- other: <https://git.kernel.org/stable/c/8e49cd891bda447c68122d672510a604a8bb6b24>
- other: <https://git.kernel.org/stable/c/8b519cbcabe836a441369fbec1a8a6518a709251>

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

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