• News/
  • https://thehackernews.com/2026/06/new-linux-pedit-cow-exploit-enables.html

New Linux pedit COW Exploit Enables Root Access by Poisoning Cached Binaries

The Hacker News
·
Published Jun 26, 2026
·
Updated

A flaw in the Linux kernel's traffic-control subsystem can let a local unprivileged user gain root on affected systems. CVE-2026-46331, nicknamed "pedit COW," is an out-of-bounds write in the packet-editing action (act_pedit) that corrupts shared page-cache memory. A public, working exploit appeared within a day of the CVE assignment on June 16. Red Hat rates the flaw as important. The exploit never touches the file on disk. It poisons the cached copy of a setuid root binary (/bin/su) in memory, injects a small payload, and runs that altered image as root. File-integrity checks come back clean while a root shell is already open. The exploit needs two things: act_pedit being loadable and unprivileged user namespaces being open, giving the attacker a namespace-local networking capability (CAP_NET_ADMIN) needed to trigger the bug. On the tested RHEL and Debian targets, both conditions were present. Linux's tc traffic-control tool can rewrite packet headers in flight using an action called pedit. The kernel function that does this, tcf_pedit_act(), is supposed to make a private copy of the data before editing it, the standard copy-on-write pattern. It checked the writable range once, before the final offsets were known. Some edit keys only resolve their offset at runtime. When that happens, the write lands outside the privately copied region, so the kernel modifies a shared page-cache page instead of a private copy. If that page belongs to a cached file, the file's in-memory imag...

Read full article

Affected Software

3 affected components
Red Hat Enterprise Linux=8, =9, =10
Debian Debian=11, =12
Canonical Ubuntu>=18.04<=26.04

Frequently Asked Questions

1

Which systems are at risk from CVE-2026-46331?

Affected systems are those where the act_pedit traffic-control action can be loaded and unprivileged user namespaces are enabled. Both conditions were present on the tested RHEL and Debian targets.

2

What access does an attacker need to exploit the flaw?

The flaw allows a local unprivileged user to gain root access. The attacker uses a namespace-local CAP_NET_ADMIN capability, obtained through unprivileged user namespaces, to trigger the vulnerable traffic-control functionality.

3

Why might file-integrity checks fail to detect this attack?

The exploit does not modify the setuid root binary on disk. Instead, it corrupts the shared page-cache copy in memory, injects a payload into the cached /bin/su image, and executes that altered in-memory image as root.

4

Is exploitation theoretical or publicly available?

A public working exploit appeared within a day of the CVE assignment on June 16. Red Hat rates the vulnerability as important.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203