{"id":13915,"date":"2026-06-27T10:03:55","date_gmt":"2026-06-27T10:03:55","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2026\/06\/27\/new-linux-pedit-cow-exploit-allows-attackers-to-gain-system-root-access\/"},"modified":"2026-06-27T10:03:55","modified_gmt":"2026-06-27T10:03:55","slug":"new-linux-pedit-cow-exploit-allows-attackers-to-gain-system-root-access","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2026\/06\/27\/new-linux-pedit-cow-exploit-allows-attackers-to-gain-system-root-access\/","title":{"rendered":"New Linux pedit COW Exploit Allows Attackers to Gain System Root Access"},"content":{"rendered":"<p>    New Linux pedit COW Exploit Allows Attackers to Gain System Root Access<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p class=\"wp-block-paragraph\">A newly disclosed Linux kernel vulnerability combining a Copy-on-Write (COW) page-cache corruption flaw with the <code>net\/sched<\/code> subsystem\u2019s <code>act_pedit<\/code> component is enabling unprivileged local attackers to escalate privileges to full root access on several major Linux distributions.<\/p>\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/sgkdev\/packet_edit_meme\/blob\/main\/README.md\" target=\"_blank\" rel=\"noreferrer noopener\">The exploit, dubbed packet_edit_meme<\/a>, has been verified in June 2026 against actively maintained enterprise and consumer kernels.<\/p>\n<p class=\"wp-block-paragraph\">The root cause is a partial-COW page-cache corruption bug introduced in kernel commit <code>899ee91156e5<\/code>, present across Linux kernel versions v5.18 through v7.1-rc6 and patched in v7.1-rc7. The flaw resides in the <code>net\/sched act_pedit<\/code> subsystem, a traffic editing component of the Linux traffic control (tc) framework.<\/p>\n<p class=\"wp-block-paragraph\">The attack chain works by spawning a user namespace child process with <code>CAP_NET_ADMIN<\/code> capabilities \u2014 a permission reachable by unprivileged users on systems where unprivileged user namespaces are enabled by default.<\/p>\n<p class=\"wp-block-paragraph\">The exploit then leverages the COW corruption primitive to overwrite the <strong>page-cached ELF entry point<\/strong> of the setuid-root binary <code>\/bin\/su<\/code>, injecting shellcode that executes <code>setgid(0)<\/code> + <code>setuid(0)<\/code> + <code>execve(\"\/bin\/sh\")<\/code> \u2014 delivering a root shell to the attacker.<\/p>\n<p class=\"wp-block-paragraph\">This is the fourth recent privilege escalation vulnerability disclosed in Linux systems.<\/p>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<thead>\n<tr>\n<th>Vulnerability<\/th>\n<th>CVE<\/th>\n<th>Disclosed<\/th>\n<th>Subsystem<\/th>\n<th>Write Primitive<\/th>\n<th>Root Required?<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong><a href=\"https:\/\/cybersecuritynews.com\/linux-kernel-0-day-copy-fail\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Copy Fail<\/a><\/strong><\/td>\n<td>CVE-2026-31431<\/td>\n<td>April 30, 2026<\/td>\n<td>\n<code>algif_aead<\/code> (AF_ALG crypto)<\/td>\n<td>4-byte page-cache write<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td><strong><a href=\"https:\/\/cybersecuritynews.com\/dirty-frag-linux-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">DirtyFrag<\/a><\/strong><\/td>\n<td>CVE-2026-43284 \/ CVE-2026-43500<\/td>\n<td>May 8, 2026<\/td>\n<td>IPsec ESP (xfrm) + RxRPC<\/td>\n<td>Full write primitive (chained)<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td><strong><a href=\"https:\/\/cybersecuritynews.com\/fragnesia-linux-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">Fragnesia<\/a><\/strong><\/td>\n<td>CVE-2026-46300<\/td>\n<td>May 14, 2026<\/td>\n<td>XFRM ESP-in-TCP<\/td>\n<td>Arbitrary byte write<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td><strong>pedit COW<\/strong><\/td>\n<td>CVE-2026-46331<\/td>\n<td>June 26, 2026<\/td>\n<td><code>net\/sched act_pedit<\/code><\/td>\n<td>Out-of-bounds page-cache write<\/td>\n<td>No<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h2 id=\"h-affected-distributions\" class=\"wp-block-heading\"><strong>Affected Distributions<\/strong><\/h2>\n<p class=\"wp-block-paragraph\">Verified testing confirms exploitation success on multiple widely deployed distributions:<\/p>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<thead>\n<tr>\n<th>Distribution<\/th>\n<th>Kernel<\/th>\n<th>Flag<\/th>\n<th>Result<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>RHEL 10.0<\/td>\n<td>6.12.0-228.el10<\/td>\n<td>None<\/td>\n<td><strong>ROOT<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Debian 13 (Trixie)<\/td>\n<td>6.12.90+deb13.1<\/td>\n<td>None<\/td>\n<td><strong>ROOT<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Ubuntu 24.04.4<\/td>\n<td>6.17.0-22<\/td>\n<td><code>--ubuntu<\/code><\/td>\n<td><strong>ROOT<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Ubuntu 26.04<\/td>\n<td>7.0.0-14-generic<\/td>\n<td><code>--ubuntu<\/code><\/td>\n<td>FAIL<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p class=\"wp-block-paragraph\">RHEL and Debian are immediately vulnerable with no flags required, as both ship with unprivileged user namespaces open by default. Notably, RHEL lacks <code>cls_basic<\/code> and <code>em_meta<\/code> modules, but the exploit automatically falls back to <code>matchall<\/code> to deliver the same corruption primitive.<\/p>\n<p class=\"wp-block-paragraph\">Ubuntu enforces two sysctls that restrict unprivileged user namespace creation:<\/p>\n<ul class=\"wp-block-list\">\n<li>\n<code>kernel.apparmor_restrict_unprivileged_userns<\/code> \u2014 blocks unconfined userns creation<\/li>\n<li>\n<code>kernel.apparmor_restrict_unprivileged_unconfined<\/code> \u2014 prevents <code>aa-exec<\/code> permissive profiles from shedding the restriction<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">The <code>--ubuntu<\/code> flag re-executes the exploit via <code>aa-exec<\/code> using permissive profiles such as <code>trinity<\/code>, <code>chrome<\/code>, or <code>flatpak<\/code> \u2014 which carry a <code>userns<\/code> rule \u2014 effectively bypassing the AppArmor gate.<\/p>\n<p class=\"wp-block-paragraph\">This bypass works on Ubuntu 24.04.4 (<code>unconfined=0<\/code>) but is closed on Ubuntu 26.04 (<code>unconfined=1<\/code>), which tightens the restriction to block this re-execution path entirely.<\/p>\n<h2 id=\"h-mitigations\" class=\"wp-block-heading\"><strong>Mitigations<\/strong><\/h2>\n<p class=\"wp-block-paragraph\">Red Hat has published an official security bulletin at <a href=\"https:\/\/access.redhat.com\/security\/vulnerabilities\/RHSB-2026-008\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">RHSB-2026-008<\/a>. Administrators are strongly urged to apply kernel patches immediately, restrict unprivileged user namespace creation via sysctl where operationally feasible, and monitor for unexpected <code>aa-exec<\/code> invocations or namespace creation events.<\/p>\n<p class=\"wp-block-paragraph\">Organizations running kernels between v5.18 and v7.1-rc6 should treat this as a critical priority patch.<\/p>\n<p class=\"has-text-align-center has-background wp-block-paragraph\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 91%,rgb(169,184,195) 100%)\"><strong><strong><strong><strong>Upgrade your proactive defense against attacks. Access\u00a0<a href=\"https:\/\/any.run\/cybersecurity-blog\/threat-hunting-for-soc-and-mssp\/?utm_source=csn&amp;utm_medium=links&amp;utm_campaign=threat+hunter&amp;utm_content=blog&amp;utm_term=250626\" target=\"_blank\" rel=\"noreferrer noopener\">5 proven threat hunting tactics<\/a>\u00a0you can deploy in your SOC<\/strong><\/strong><\/strong>.<\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/linux-pedit-cow-exploit\/\">New Linux pedit COW Exploit Allows Attackers to Gain System Root Access<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Guru Baran<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/linux-pedit-cow-exploit\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>New Linux pedit COW Exploit Allows Attackers to Gain System Root Access A newly disclosed Linux kernel vulnerability combining a Copy-on-Write (COW) page-cache corruption flaw with the net\/sched subsystem\u2019s act_pedit component is enabling unprivileged local attackers to escalate privileges to full root access on several major Linux distributions. The exploit, dubbed packet_edit_meme, has been verified [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63],"tags":[130],"class_list":["post-13915","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/13915"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=13915"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/13915\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=13915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=13915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=13915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}