CVE-2026–46331 — pedit COW Zafiyeti
A copy-on-write flaw in the Linux kernel's act_pedit traffic control module lets a local unprivileged user write outside a copied buffer and modify a page cache page belonging to a setuid root binary such as /bin/su. An attacker could then run the modified in-memory image as root without writing anything to disk.
medium.com
Published on medium.com
Diskte hiçbir iz bırakmadan root shell açan CVE-2026–46331, hem teknik olarak hem de disclosure süreciyle çok şey anlatıyor.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the act_pedit function validates a writable range before some edit keys resolve their offset at runtime, so the later write lands outside the private copy and modifies a shared page cache page.
Impact
A local unprivileged user could gain a root shell on affected systems, and because nothing is written to disk, checking the binary's hash still reports it as clean.
What the attacker needed
Act_pedit module loadable; unprivileged user namespaces enabled; local unprivileged access
The fix
The flaw was fixed in the kernel, and administrators should apply the patch and reboot; if that is not possible, block the act_pedit module or disable unprivileged user namespaces.
How it was found
- Ensure the act_pedit module can be loaded and unprivileged user namespaces are enabled.
- Create an unprivileged user namespace to obtain CAP_NET_ADMIN inside it.
- Trigger the pedit action so the out-of-bounds write poisons the page cache copy of /bin/su.
- Inject a small payload into that in-memory image and execute it as root.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The Linux kernel tries to keep shared memory safe by copying data before changing it, a trick called copy-on-write. In this bug, a networking module checks the wrong thing and ends up changing a shared copy of a program file that is already in memory. Because that file is a privileged program, the attacker can make it run their own code as the root user, and nothing is written to disk so file checksums still look normal.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.