CVE-2026-72338
net/sched: act_pedit: fix TOCTOU heap OOB write in tc offload
Reported by linux · Published August 15, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf6.12 | Amazon Linux | 1:6.12.100-125.179.amzn2023 |
| kernel-livepatch-6.12.100-125.179 | Amazon Linux | 1:1.0-0.amzn2023 |
| perf6.18 | Amazon Linux | 1:6.18.41-94.142.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.100-125.179.amzn2023 |
| bpftool6.18 | Amazon Linux | 1:6.18.41-94.142.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb, 71d0ed7079dffbc5cd0941d77d9b84e04109c9bb |
| Linux | Linux | 4.11, 0, 6.1.191 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.100-125.179 | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| linux | linux_kernel | 4.11, 4.11, 4.11 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel-livepatch-6.18.41-94.142 | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
…and 7 more
Timeline
- Aug 15, 2026 Coalition ESS Score
- Aug 15, 2026 CVE Published
- Aug 19, 2026 Security Advisory
- Aug 24, 2026 EPSS Score (11 in total, the first dated here)
- Oct 30, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-72338
vulnetix vdb fixes CVE-2026-72338
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-72338/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart