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.
Published: 2026-08-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A TOCTOU race condition in the Linux kernel’s act_pedit network scheduler allows an attacker with CAP_NET_ADMIN privilege to size a flow_rule buffer and then, before the buffer is populated, write 4 bytes beyond the allocated 288‑byte region. The out‑of‑bounds write is reported by KASAN as a slab-out-of-bounds error adjacent to the allocated region. This memory corruption could alter kernel data structures, potentially compromising system confidentiality, integrity, or availability.

Affected Systems

All Linux kernel versions that do not include the act_pedit TOCTOU heap OOB fix are affected. The vulnerability resides in the tc act_pedit component of the Linux kernel, and any distribution shipping an older kernel will be vulnerable unless patched.

Risk and Exploitability

The CVSS score of 7.8 classifies the issue as high severity, while the EPSS score of <1% indicates a low probability of exploitation in the wild. The flaw is not listed in the CISA KEV catalog. Exploitation requires CAP_NET_ADMIN, limiting the attack to privileged local users and reducing the potential impact to environments where such privileges are tightly controlled. Despite the low EPSS, the race condition is reachable in practice and could be used to overwrite kernel memory, making it a concern for systems with untrusted privileged users.

Generated by OpenCVE AI on August 22, 2026 at 08:33 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release or patch that incorporates the act_pedit TOCTOU heap OOB fix, as referenced in the provided git commits.
  • Reboot or reload the kernel after the patch to activate the corrected routines.
  • Restrict the CAP_NET_ADMIN capability to trusted users only or remove it from untrusted accounts to reduce the attack surface for this vulnerability.

Generated by OpenCVE AI on August 22, 2026 at 08:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 07:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-758

Wed, 19 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-758

Mon, 17 Aug 2026 09:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122
CWE-362

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sat, 15 Aug 2026 11:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122
CWE-362

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
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.
Title net/sched: act_pedit: fix TOCTOU heap OOB write in tc offload
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:42:56.770Z

Reserved: 2026-08-09T03:40:39.920Z

Link: CVE-2026-72338

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:07.043

Modified: 2026-08-17T06:18:37.493

Link: CVE-2026-72338

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72338 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T08:45:03Z

Weaknesses