Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2026-46331: Pedit COW

Published Jun 16, 2026 · Updated 26 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS6.7Medium · v3.1
EPSS0.20%6th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendor
Linux
IdentifiersCVE-2026-46331CWE-131

CVE-2026-46331 is an incomplete copy-on-write vulnerability in the Linux kernel network scheduler's pedit action. The tcf_pedit_act() function calculates the range passed to skb_ensure_writable() once before processing editing keys, using tcfp_off_max_hint. This hint omits runtime header offsets added by typed keys, leaving part of the actual write region without copy-on-write protection. Subsequent packet edits can consequently modify shared, file-backed pages and corrupt the page cache, including cached contents of files the attacker can read but cannot write. Exploitation can lead to local privilege escalation when a privileged process executes a poisoned executable.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises file-content integrity in the page cache without requiring permission to modify the underlying file or changing its on-disk bytes. Poisoning an executable subsequently launched by an existing root process can result in root-level code execution. The SharedRoot sandbox-escape chain used this mechanism to obtain root inside a Claude Cowork Linux guest. Access to host files in that chain additionally depended on an existing read-write host filesystem share; the kernel vulnerability alone does not establish a VM escape or macOS root compromise.

Mitigation

If you can’t patch tonight, do this now.

Restrict traffic-control configuration and CAP_NET_ADMIN to trusted processes. Where operationally feasible, disable or restrict unprivileged user namespaces to prevent ordinary users from obtaining namespace-scoped network-administration capabilities. Remove unused act_pedit support or prevent its module autoloading; autoload restrictions do not protect a kernel where the vulnerable functionality is already loaded or built in. Sandbox policies can block namespace creation and unnecessary AF_NETLINK socket access. Isolate executables launched by privileged services from untrusted sessions. In VM-based sandboxes, expose only explicitly authorized host directories to contain the consequences of guest-root compromise.

Remediation

Patch, then assume compromise.

Install a vendor-supported kernel update containing the pedit partial-COW fix and reboot into the corrected kernel. The fix moves skb_ensure_writable() into the per-key loop, where the actual write offset is known; checks offset arithmetic for overflow; uses skb_cow() to prepare headroom for negative offsets; and guards offset_valid() against INT_MIN. Debian fixed package versions include 5.10.262-1 for bullseye, 6.1.176-1 for bookworm, and 6.12.94-1 for trixie. The identified Google Container-Optimized OS kernel packages should be updated to version 18867.528.21 or later. Use the fixed build appropriate to the distribution and kernel stream rather than assuming one upstream version threshold applies universally.

Public exploits

Exploits

8 exploits validated by Mallory's analysis. Hidden: 9 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
packet_edit_memeRepository contains a standalone local Linux privilege-escalation exploit for CVE-2026-46331 plus a reusable primitive and a verification harness. Structure: (1) pedit_primitive.c/.h implement the core page-cache overwrite primitive by configuring tc/netlink state on the loopback interface and abusing net/sched act_pedit to write beyond a stale COW range into page-cache-backed data sent via sendfile; setup() prepares loopback networking, opens a local TCP listener on 127.0.0.1:4445, and calibrates the file-offset delta using /tmp/.pedit_calib. api_fd_write() exposes the primitive as bounded 4-byte-slot writes to an arbitrary file descriptor, including O_RDONLY descriptors. (2) test_cve.c is a non-privilege-escalation testcase that creates /tmp/cve_target, reopens it read-only, performs 10 overwrite attempts at varying offsets/sizes, and verifies that the page cache changed despite only holding an O_RDONLY fd. (3) packet_edit_meme.c weaponizes the primitive into unprivileged local root: it locates a setuid-root su binary, parses ELF headers to find the executable entry-point file offset, forks a child that unshares user and network namespaces, maps itself to uid/gid 0 inside the namespace, calls setup(), and writes x86_64 shellcode over the cached su entry point. The parent then execves su from the initial namespace, causing the setuid-root binary to execute the injected shellcode and spawn an interactive root /bin/sh. Ubuntu-specific logic optionally re-execs through aa-exec with profiles trinity/chrome/flatpak to bypass AppArmor userns restrictions. Overall, this is a real exploit repository, not just a detector: it provides both a generic arbitrary page-cache overwrite primitive and an operational local root exploit payload.sgkdev · Disclosed Jun 17, 2026 · c · makefile · localOperationalCVE-2026-46331The repository contains a standalone C exploit, CVE-2026-46331.c (reported as 19,653 bytes), and README.md (4,633 bytes). No exploit-framework integration is evident. The source is substantially truncated in the supplied material, so the complete corruption primitive, shellcode, and operational validity cannot be verified. The claimed vulnerability is incorrect writable-range calculation in Linux traffic-control act_pedit: runtime packet-header offsets allegedly allow edits beyond the copied region, modifying shared file-backed page-cache data. Visible code includes netlink request construction, packet-edit key definitions, loopback networking constants, and calibration settings. These support the stated exploitation approach but do not independently establish that the vulnerability or CVE attribution is valid. The visible execution path rejects root callers, locates a setuid-root su executable, opens it read-only, determines its ELF entry-point offset, and forks a child to perform corruption. A visible fragment writes the embedded SHELLCODE through api_fd_write() in chunks of at most 36 bytes. The parent waits for a success acknowledgment and successful child exit before executing the targeted su binary. This is an attempted privilege-escalation exploit rather than a detection-only script; its intended payload is hardcoded, supporting an OPERATIONAL classification, not a claim of verified reliability. No clear evidence of a fake exploit is visible. The README describes the vulnerability, CAP_NET_ADMIN requirements, claimed fixes, and mitigations, but supplies no affected kernel versions or usable advisory links. Its citation placeholders do not substantiate those claims. GitHub image and badge URLs are documentation resources, not exploit communication endpoints. No external command-and-control or exfiltration destination appears in the visible code. Page-cache corruption may damage execution of the targeted binary; restoration behavior cannot be assessed from the excerpt. Repository URL, revision, and archive size were not provided; empty metadata and a zero size represent unavailable information, not a measured empty archive.ashrafzaryouh · Disclosed Jun 26, 2026 · c · localOperationalCVE-2026-46331This repository is a compact local privilege escalation proof-of-concept for CVE-2026-46331. It contains two files: a single C exploit source file and a README describing the vulnerability and impact. The main file, CVE-2026-46331.c, is a standalone Linux exploit that builds raw NETLINK_ROUTE messages to configure traffic-control state in the kernel, specifically matchall/pedit-related objects in net/sched. It uses loopback traffic on 127.0.0.1:4445 to exercise the vulnerable act_pedit path and appears to include an integrated write primitive ('pedit_primitive') with calibration support via /tmp/.pedit_calib. The exploit then locates a setuid-root su binary, parses its ELF entry point, and repeatedly writes shellcode into that entry offset through the corruption primitive. After successful corruption, it execve()s the modified su binary to obtain root code execution. This is not a scanner or detector; it is an actual exploit with a hardcoded payload, making it operational rather than a bare PoC. No external C2 or remote infrastructure is present; the exploit is entirely local and relies on vulnerable kernel behavior plus the presence of a usable setuid-root su target.0xBlackash · Disclosed Jun 26, 2026 · c · markdown · localOperationaldirtyclone-exploitThis repository is a standalone multi-file local privilege escalation exploit framework written primarily in C, with auxiliary Python and Bash tooling. Its stated purpose is exploitation of CVE-2026-46331, described as a Linux kernel page-cache corruption bug involving TC pedit, IPsec ESP, and TEE packet duplication. The repository structure is organized into: headers under include/ defining exploit context, packet, memory, and persistence APIs; C source files under src/ implementing an 8-stage attack chain; Python helper modules for reconnaissance and packet crafting; and shell scripts for setup, cleanup, and target discovery. Main execution starts in src/main.c, which parses flags such as --target, --remote, --stealth, --persist, --cleanup, and --test, generates a payload, and runs eight stages: environment analysis, namespace bypass, network setup, page-cache corruption, privilege escalation, persistence, evasion, and cleanup. The exploit is clearly intended as an actual offensive tool rather than a detector: it contains shellcode, persistence installers, cleanup/evasion logic, and shell-spawning behavior. Core capabilities: 1) Reconnaissance: stage_env_analysis.c and modules/exploit_analyzer.py inspect kernel version, distro, user namespace availability, AppArmor/SELinux, tc/ipsec/netfilter support, and ELF entry offsets of target SUID binaries. 2) Namespace/network preparation: stage_namespace_bypass.c attempts unshare(CLONE_NEWUSER|CLONE_NEWNET), AppArmor profile hopping via aa-exec, LD_PRELOAD tricks against SUID binaries, and a clone/unshare fallback. stage_network_setup.c configures loopback, clsact qdisc, tc pedit filters that set IP IHL=15, xfrm/IPsec state and policy, and an iptables TEE rule for UDP/4500 traffic. 3) Corruption primitives: stage_page_cache_corrupt.c uses find_elf_entry() to locate the target ELF entry point and then tries multiple write methods: sendfile, mmap, splice, raw packet sending, and /proc/pid/mem. memory_ops.c implements these primitives plus cache flushing and verification helpers. 4) Privilege escalation: stage_privilege_escalation.c first executes the corrupted target binary, then falls back to partially implemented ptrace injection, LD_PRELOAD-based escalation, and optional kernel-module loading. 5) Post-exploitation: stage_persistence.c and persistence.c implement cron, SSH authorized_keys, hidden SUID copy, systemd service, LD_PRELOAD, kernel module, and bind-shell persistence. stage_evasion.c and stage_cleanup.c attempt anti-forensics by truncating logs, disabling audit, clearing histories, flushing caches, removing rules, and deleting artifacts. Notable implementation observations: the repository is operational but imperfect. The packet trigger path in src/packet_engine.c is stubbed and returns -1, while stage_page_cache_corrupt.c still treats successful raw packet sends as corruption success without validating the kernel-side trigger. The reverse-shell payload generator does not generate distinct shellcode; instead, connect_reverse_shell() later runs a bash /dev/tcp command. Despite these gaps, the codebase contains real exploit-oriented logic and multiple offensive post-exploitation features, making it more than a simple PoC. Fingerprintable targets and infrastructure are concentrated around local Linux resources rather than external C2: loopback 127.0.0.1, UDP port 4500 for IPsec/TEE traffic, target binaries such as /usr/bin/su and /usr/bin/sudo, persistence files under /etc and /root/.ssh, and temporary artifacts under /tmp and /opt/dirtyclone. Overall, this is a local/network-assisted Linux kernel LPE framework with built-in payload delivery, persistence, and anti-forensics components.vulnquest58 · Disclosed Jun 28, 2026 · c · python · local · networkOperationalCVE-2026-46331Repository contains a single C proof-of-concept exploit plus a README. The main file, cve-2026-46331.c, is a standalone local privilege escalation PoC for CVE-2026-46331, described in comments as a Linux kernel net/sched act_pedit partial COW page-cache corruption issue. The code is not a scanner or detector: it builds raw netlink/rtnetlink requests, configures traffic-control related state, uses loopback traffic on 127.0.0.1:4445 to exercise the vulnerable kernel path, and performs calibration using /tmp/.pedit_calib. The exploit then locates a setuid-root su binary, parses its ELF entry point, attempts to corrupt that entry in page cache, and finally execves the su binary to obtain a root shell. Structurally, the code includes helpers for constructing nested netlink attributes and sending requests, constants for pedit/matchall/tc metadata, loopback networking parameters, and the final exploitation routine in run_exploit() invoked by main(). Overall purpose: demonstrate reliable local root escalation on vulnerable Linux kernels by abusing traffic-control pedit behavior to alter cached contents of a privileged executable.aexdyhaxor · Disclosed Jul 10, 2026 · c · markdown · local · networkOperationalCVE-2026-46331This repository contains a standalone local privilege escalation exploit for CVE-2026-46331 in Linux net/sched act_pedit, plus a reusable primitive and a verification harness. The codebase is small and focused: packet_edit_meme.c is the main exploit, pedit_primitive.c/.h implement the page-cache overwrite primitive, test_cve.c validates the primitive against a temporary file, and the Makefile builds static binaries. CI workflow files build and release precompiled binaries for multiple Linux distributions. Core capability: the primitive abuses tc pedit on loopback egress so that one pedit key inflates the IPv4 header length and subsequent TCP-header pedit keys write beyond the intended copy-on-write range into a page-cache page populated via sendfile. The exported API api_fd_write(fd, offset, src, size) allows overwriting page-cache contents of an O_RDONLY file descriptor in 4-byte slots, up to 36 bytes per call. Main exploit flow in packet_edit_meme.c: it must be run as a non-root user. It discovers a usable setuid-root ELF binary by scanning the filesystem with find for root-owned mode-4000 regular files and selecting the first world-readable ELF. It then uses the primitive to overwrite cached ELF metadata and inject x86_64 syscall shellcode that calls setgid(0), setuid(0), and execve("/bin/sh"). The parent process remains in the initial user namespace and execs the corrupted setuid binary, yielding an interactive root shell. The README notes special handling for Alpine PIE binaries by modifying ELF program-header flags and splitting shellcode/trampoline placement across safe offsets. The exploit also includes an Ubuntu-specific path: when invoked with --ubuntu, it attempts to bypass AppArmor restrictions on unprivileged user namespaces by re-executing itself through aa-exec under one of several permissive profiles (trinity, chrome, flatpak). This is not remote exploitation; it is a local kernel LPE that combines namespace-derived CAP_NET_ADMIN with tc/netlink configuration and loopback TCP traffic. The test harness test_cve.c is not the exploit itself but demonstrates the primitive reliably by creating /tmp/cve_target, reopening it read-only, issuing 10 overwrite attempts at different offsets and sizes, and verifying that the modified bytes are visible through the read-only descriptor. Overall, the repository is a real, operational exploit implementation with a hardcoded root-shell payload rather than a mere detector or README.yanxinwu946 · Disclosed Jul 11, 2026 · c · makefile · local · networkOperationalpage-cache-corruption-lpesRepository contains three standalone C local privilege escalation exploits for Linux kernel page-cache corruption bugs: dirty_pedit/exploit.c, skb_shift/exploit.c, and gro/exploit.c, each accompanied by a detailed README. The top-level README explains the shared bug class: splice page-cache pages into kernel/network buffers, bypass copy-on-write protections, then modify read-only file contents in memory only. This is a real exploit repository, not a detector. Dirty Pedit targets CVE-2026-46331. It is the simplest and fastest exploit in the repo. The code creates a new user and network namespace, writes uid/gid maps via /proc/self/{uid_map,gid_map,setgroups}, creates a Geneve interface geneve0 over 10.0.0.1:6081, and abuses TC pedit to perform controlled 4-byte writes into page-cache-backed skb fragments. The target is /etc/passwd; the exploit finds a suitable victim line, overwrites 12 bytes with data that yields a passwordless uid 0 account entry in the page cache, then runs su a -c '... /bin/sh'. This provides a root shell without modifying the on-disk file. skb_shift and GRO both target CVE-2026-43503 but use different kernel paths to lose the SKBFL_SHARED_FRAG protection bit before ESP decryption writes into page-cache pages. Both contain a hardcoded AES key/salt, a 256-entry IV lookup table, and a 192-byte ELF stub payload. Their capability is a byte-at-a-time arbitrary page-cache overwrite of readable files, used here to replace the first 192 bytes of /usr/bin/su in memory. The stub then calls setresuid(0), setresgid(0), and execve("/bin/sh"). skb_shift uses loopback networking with ESP-in-TCP. It binds to 10.0.0.1, installs an XFRM SA, rotates through TCP ports 7700-7799, and for each byte computes the needed keystream byte from the current file byte XOR desired stub byte. It then crafts an espintcp record and splices file data into the TCP stream so kernel decryption flips the target byte in page cache. This exploit is described as deterministic. GRO uses a veth pair between namespaces, with addresses 10.200.0.1 and 10.200.0.2, and ESP-in-UDP on port 4500. It relies on GRO coalescing to merge a normal segment and a splice-backed segment while dropping the shared-frag flag. The exploit sets up veth0/veth1, moves one interface into a child network namespace, enables GRO, installs an ESP-in-UDP receiver, and performs repeated byte writes against /usr/bin/su. This variant is probabilistic and may retry writes. Overall, the repository is structured as three self-contained exploit implementations plus documentation. All three are operational LPEs with hardcoded payloads and clear exploitation chains, focused on memory-only corruption of page-cache contents to obtain a root shell.rjt-gupta · Disclosed Jul 22, 2026 · c · markdown · local · networkOperationalpedit-cowThis two-file repository contains a README and a standalone C local privilege-escalation exploit. The README identifies CVE-2026-46331 as a Linux kernel traffic-control vulnerability involving pedit and page-cache corruption. exploit.c is the sole executable component and implements manual rtnetlink message construction rather than relying on an exploit framework. It configures loopback networking, creates/removes traffic-control clsact objects, builds nested traffic-control attributes including ematch/pedit-related data, and uses local loopback traffic to drive the vulnerable path. The program refuses to run as root, enumerates candidate SUID binaries, validates the selected target as a regular SUID file, parses its ELF metadata to locate the entry offset, then forks a corruption worker. If corruption succeeds, the parent executes the target SUID program. The embedded x86_64 shellcode requests root group and user IDs and executes /bin/sh. The payload is fixed/basic, but the SUID target is selected dynamically, making this an operational local exploit rather than a detection-only PoC.theendofabbys · Disclosed Sep 15, 2026 · c · markdown · localOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2026-46331 exploited in the wild?
Yes. As of Nov 2, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2026-46331?
Yes. Mallory tracks 8 public exploits or proofs of concept for CVE-2026-46331, the earliest disclosed Jun 17, 2026.
Is there a patch for CVE-2026-46331?
Install a vendor-supported kernel update containing the pedit partial-COW fix and reboot into the corrected kernel. The fix moves skb_ensure_writable() into the per-key loop, where the actual write offset is known; checks offset arithmetic for overflow; uses skb_cow() to prepare headroom for negative offsets; and guards offset_valid() against INT_MIN.
What products are affected by CVE-2026-46331?
Linux Kernel.
How severe is CVE-2026-46331?
CVE-2026-46331 has a CVSS v3.1 score of 6.7 (Medium) and an EPSS score of 0.20% (6th percentile) as of Nov 2, 2026.
Activity feed

Recent activity

232 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+76 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity97Community discussion across Reddit, Mastodon, and other social sources.