CVE-2026-46331
HIGHIn 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.
Published: 6/16/2026Modified: 7/3/2026
References (36)
https://git.kernel.org/stable/c/2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61bhttps://git.kernel.org/stable/c/3dee9d0c198faeb95d052c1b94c2958751a28512https://git.kernel.org/stable/c/899ee91156e57784090c5565e4f31bd7dbffbc5ahttps://git.kernel.org/stable/c/b198ed4e52580a7238c7c7082f03906f8b310313https://access.redhat.com/errata/RHSA-2026:27288https://access.redhat.com/errata/RHSA-2026:27353https://access.redhat.com/errata/RHSA-2026:27354https://access.redhat.com/errata/RHSA-2026:27355https://access.redhat.com/errata/RHSA-2026:27704https://access.redhat.com/errata/RHSA-2026:27705https://access.redhat.com/errata/RHSA-2026:27706https://access.redhat.com/errata/RHSA-2026:27707https://access.redhat.com/errata/RHSA-2026:27708https://access.redhat.com/errata/RHSA-2026:27709https://access.redhat.com/errata/RHSA-2026:27713https://access.redhat.com/errata/RHSA-2026:27731https://access.redhat.com/errata/RHSA-2026:27789https://access.redhat.com/errata/RHSA-2026:28887https://access.redhat.com/errata/RHSA-2026:29080https://access.redhat.com/errata/RHSA-2026:29794https://access.redhat.com/errata/RHSA-2026:29799https://access.redhat.com/errata/RHSA-2026:29833https://access.redhat.com/errata/RHSA-2026:29856https://access.redhat.com/errata/RHSA-2026:29863https://access.redhat.com/errata/RHSA-2026:33219https://access.redhat.com/errata/RHSA-2026:33220https://access.redhat.com/errata/RHSA-2026:33221https://access.redhat.com/errata/RHSA-2026:33222https://access.redhat.com/errata/RHSA-2026:33223https://access.redhat.com/errata/RHSA-2026:33224https://access.redhat.com/errata/RHSA-2026:33225https://access.redhat.com/errata/RHSA-2026:33666https://access.redhat.com/security/cve/CVE-2026-46331https://bugzilla.redhat.com/show_bug.cgi?id=2479492https://github.com/sgkdev/packet_edit_meme/tree/mainhttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46331.json