net/sched: fix pedit partial COW leading to page cache corruption
Summary
| CVE | CVE-2026-46331 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-06-16 08:16:23 UTC |
| Updated | 2026-06-19 13:16:36 UTC |
| Description | 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. |
Risk And Classification
EPSS: 0.001570000 probability, percentile 0.051670000 (date 2026-06-20)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 8b796475fd7882663a870456466a4fb315cc1bd6 2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b git | Not specified |
| CNA | Linux | Linux | affected 8b796475fd7882663a870456466a4fb315cc1bd6 b198ed4e52580a7238c7c7082f03906f8b310313 git | Not specified |
| CNA | Linux | Linux | affected 8b796475fd7882663a870456466a4fb315cc1bd6 3dee9d0c198faeb95d052c1b94c2958751a28512 git | Not specified |
| CNA | Linux | Linux | affected 8b796475fd7882663a870456466a4fb315cc1bd6 899ee91156e57784090c5565e4f31bd7dbffbc5a git | Not specified |
| CNA | Linux | Linux | affected d0c38a914b0c4c21d553da801003d36979016726 git | Not specified |
| CNA | Linux | Linux | affected 2ec2dd7d51a9320151f275ddbb2b53260fb32ca1 git | Not specified |
| CNA | Linux | Linux | affected abe35bf3be51482593076d516a680d79e5fbc8e1 git | Not specified |
| CNA | Linux | Linux | affected b773640d5bb9e2acfd91e2695717af04d47aa116 git | Not specified |
| CNA | Linux | Linux | affected c19cc520b3d69904e9518d401ad0df7f4702aca0 git | Not specified |
| CNA | Linux | Linux | affected 4.19.244 4.20 semver | Not specified |
| CNA | Linux | Linux | affected 5.4.195 5.5 semver | Not specified |
| CNA | Linux | Linux | affected 5.10.117 5.11 semver | Not specified |
| CNA | Linux | Linux | affected 5.15.41 5.16 semver | Not specified |
| CNA | Linux | Linux | affected 5.17.9 5.18 semver | Not specified |
| CNA | Linux | Linux | affected 5.18 | Not specified |
| CNA | Linux | Linux | unaffected 5.18 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.94 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.36 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.0.13 7.0.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.1 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/b198ed4e52580a7238c7c7082f03906f8b310313 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/899ee91156e57784090c5565e4f31bd7dbffbc5a | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/3dee9d0c198faeb95d052c1b94c2958751a28512 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.