Buffer overflow in Linux
CVE-2026-46331
In the Linux kernel, the following vulnerability has been resolved:
net/sched: fix pedit partial COW leading to page cache corruption
tcf_pedit_act() computes the COW range for skb_ensure_writable()
once before the key loop using tcfp_off_max_hint, but the hint does
not account for the runtime header offset added by typed keys. This
can leave part of the write region un-COW'd.
Fix by moving skb_ensure_writable() inside the per-key loop where
the actual write offset is known, and add overflow checking on the
offset arithmetic. For negative offsets (e.g. Ethernet header edits
at ingress), use skb_cow() to COW the headroom instead. Guard
offset_valid() against INT_MIN, where negation is undefined.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.006, 51.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Linux — versions 5.17.9, 5.10.260, b773640d5bb9e2acfd91e2695717af04d47aa116
- Linux Kernel — versions 5.18, 7.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
18 public repositories with exploit or proof-of-concept code for this CVE:
- sgkdev/packet_edit_meme (148 stars, last pushed 2026-06-17): PACKET_EDIT_MEME.c (aka CVE-2026-46331): yet another page cache poisoning nightmare
- ashrafzaryouh/CVE-2026-46331 (39 stars, last pushed 2026-06-26): CVE-2026-46331
- 0xBlackash/CVE-2026-46331 (38 stars, last pushed 2026-06-26): CVE-2026-46331
- 0xredash/CVE-2026-46331 (38 stars, last pushed 2026-06-26): CVE-2026-46331
- rjt-gupta/page-cache-corruption-lpes (13 stars, last pushed 2026-07-22): CVE-2026-46331 and CVE-2026-43503
- vulnquest58/dirtyclone-exploit (7 stars, last pushed 2026-06-28): CVE-2026-46331 — Linux Kernel Local Privilege Escalation TC pedit + IPsec TEE Page Cache Corruption · Affected kernels: ≤ 6.12.9
- yanxinwu946/CVE-2026-46331 (5 stars, last pushed 2026-07-12): CVE-2026-46331 act_pedit page-cache corruption exploit, with Alpine PIE fix
- aexdyhaxor/CVE-2026-46331 (2 stars, last pushed 2026-07-10): A Proof of Concept (PoC) exploit for CVE-2026-46331
- V0IDNETWORK/CVE-2026-46331 (1 star, last pushed 2026-07-01): pedit COW
- Quaerendir/cve-2026-46331-audit (last pushed 2026-11-16): cve-2026-46331-audit script
8 more are listed on the interactive page.
References
- git.kernel.org/stable/c/899ee91156e57784090c5565e4f31bd7dbffbc5a (Patch)
- git.kernel.org/stable/c/2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b (Patch)
- git.kernel.org/stable/c/b198ed4e52580a7238c7c7082f03906f8b310313 (Patch)
- git.kernel.org/stable/c/3dee9d0c198faeb95d052c1b94c2958751a28512 (Patch)
- github.com/sgkdev/packet_edit_meme/tree/main (Third Party Advisory)
- access.redhat.com/errata/RHSA-2026:27288 (Third Party Advisory)
- access.redhat.com/errata/RHSA-2026:27353 (Third Party Advisory)
- access.redhat.com/errata/RHSA-2026:27354 (Third Party Advisory)
- access.redhat.com/errata/RHSA-2026:27355 (Third Party Advisory)
- access.redhat.com/errata/RHSA-2026:27704 (Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.