CVE-2026-46331 (pedit COW) vulnerability discovered in the Linux kernel allows local users to gain root privileges. Here are the details and ways to protect yourself.
The vulnerability coded CVE-2026-46331 discovered in the Linux kernel allows local and unauthorized users to gain root access on the system. This critical vulnerability, called “pedit COW”, is caused by a memory corruption issue in the act_pedit component of the Linux network traffic control mechanism.
The vulnerability in question triggers an error in the copy-on-write system that the kernel uses when rewriting packet headers. This allows attackers to perform operations with root privilege by poisoning the cache copies in memory without touching the documents on the disk.
Technical details of the vulnerability and systems at risk
CVE-2026-46331 is caused by an out-of-bounds write error in the act_pedit component and is triggered by the tcf_pedit_act() function’s improper handling of offset values at runtime. Attackers can bypass system integrity checks by injecting a small payload into memory copies of setuid root documents such as /bin/su.
In order to use this vulnerability successfully, the act_pedit module must be installed on the system and the unprivileged user namespaces feature must be enabled. Tests on RHEL 10 and Debian 13 prove that unauthorized users can gain root under these conditions.
Although current distributions such as Ubuntu 26.04 close this attack path by default thanks to AppArmor restrictions, the basic vulnerability at the kernel level remains. Many different versions of Red Hat, Debian and Ubuntu are directly affected by this vulnerability and carry a “High” or “Important” level of risk.
Security measures and patching process
To close this gap, system administrators need to switch to the patched kernel versions offered by the relevant distributions and restart their systems. In particular, multi-user servers, Kubernetes nodes and CI/CD systems are among the primary risk groups for this vulnerability.
In cases where a patch cannot be applied, preventing the act_pedit module from loading or disabling the unprivileged user namespaces feature can be considered as a temporary solution. However, it should not be forgotten that such restrictions may cause side effects on rootless container structures or sandbox environments.
Since the attack occurs directly on the page cache, classical document integrity checks are often insufficient. If a root shell is opened on a system, it is of great importance to assume that the system has been completely compromised and to apply the necessary security procedures.
What more fundamental solutions do you think could be developed to prevent such complex memory flaws in the Linux kernel?