Linux Kernel net/sched pedit partial COW causing cache corruption
CVE-2026-46331 Published on June 16, 2026
net/sched: fix pedit partial COW leading to page cache corruption
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 Analysis
CVE-2026-46331 can be exploited with local system access, and requires user privileges. This vulnerability is considered to have a low attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2026-46331. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Types
What is a Memory Corruption Vulnerability?
The software writes data past the end, or before the beginning, of the intended buffer. Typically, this can result in corruption of data, a crash, or code execution. The software may modify an index or perform pointer arithmetic that references a memory location that is outside of the boundaries of the buffer. A subsequent write operation then produces undefined or unexpected results.
CVE-2026-46331 has been classified to as a Memory Corruption vulnerability or weakness.
Integer Overflow or Wraparound
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control. An integer overflow or wraparound occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may wrap to become a very small or negative number. While this may be intended behavior in circumstances that rely on wrapping, it can have security consequences if the wrap is unexpected. This is especially the case if the integer overflow can be triggered using user-supplied inputs. This becomes security-critical when the result is used to control looping, make a security decision, or determine the offset or size in behaviors such as memory allocation, copying, concatenation, etc.
Products Associated with CVE-2026-46331
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2026-46331 are published in these products:
Affected Versions
Linux:- Version abe35bf3be51482593076d516a680d79e5fbc8e1 and below 544d857b42a1734b923040e13aa61a6fd4746cf2 is affected.
- Version b773640d5bb9e2acfd91e2695717af04d47aa116 and below d5d01d35a5a7d36f7cb679b67d9cbdd5205672dc is affected.
- Version 8b796475fd7882663a870456466a4fb315cc1bd6 and below a071e057518decc5e3bec89855758f5f8786f2c5 is affected.
- Version 8b796475fd7882663a870456466a4fb315cc1bd6 and below b685d6ef6f07a3b5ce814565a25f39f2157538a5 is affected.
- Version 8b796475fd7882663a870456466a4fb315cc1bd6 and below 2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b is affected.
- Version 8b796475fd7882663a870456466a4fb315cc1bd6 and below b198ed4e52580a7238c7c7082f03906f8b310313 is affected.
- Version 8b796475fd7882663a870456466a4fb315cc1bd6 and below 3dee9d0c198faeb95d052c1b94c2958751a28512 is affected.
- Version 8b796475fd7882663a870456466a4fb315cc1bd6 and below 899ee91156e57784090c5565e4f31bd7dbffbc5a is affected.
- Version d0c38a914b0c4c21d553da801003d36979016726 is affected.
- Version 2ec2dd7d51a9320151f275ddbb2b53260fb32ca1 is affected.
- Version c19cc520b3d69904e9518d401ad0df7f4702aca0 is affected.
- Version 5.10.117 and below 5.10.260 is affected.
- Version 5.15.41 and below 5.15.211 is affected.
- Version 4.19.244 and below 4.20 is affected.
- Version 5.4.195 and below 5.5 is affected.
- Version 5.17.9 and below 5.18 is affected.
- Version 5.18 is affected.
- Before 5.18 is unaffected.
- Version 5.10.260, <= 5.10.* is unaffected.
- Version 5.15.211, <= 5.15.* is unaffected.
- Version 6.1.177, <= 6.1.* is unaffected.
- Version 6.6.144, <= 6.6.* is unaffected.
- Version 6.12.94, <= 6.12.* is unaffected.
- Version 6.18.36, <= 6.18.* is unaffected.
- Version 7.0.13, <= 7.0.* is unaffected.
- Version 7.1, <= * is unaffected.
- Version 0:6.12.0-212.11.el10nv and below * is unaffected.
- Version 0:6.12.0-231.13.el10nv and below * is unaffected.
- Version 0:6.12.0-211.26.1.el10_2 and below * is unaffected.
- Version 0:6.12.0-55.82.1.el10_0 and below * is unaffected.
- Version 0:4.18.0-553.136.1.rt7.477.el8_10 and below * is unaffected.
- Version 0:4.18.0-553.136.1.el8_10 and below * is unaffected.
- Version 0:4.18.0-305.195.1.el8_4 and below * is unaffected.
- Version 0:4.18.0-305.195.1.el8_4 and below * is unaffected.
- Version 0:4.18.0-372.197.1.el8_6 and below * is unaffected.
- Version 0:4.18.0-372.197.1.el8_6 and below * is unaffected.
- Version 0:4.18.0-477.148.1.el8_8 and below * is unaffected.
- Version 0:4.18.0-477.148.1.el8_8 and below * is unaffected.
- Version 0:5.14.0-687.17.1.el9_8 and below * is unaffected.
- Version 0:5.14.0-284.177.1.el9_2 and below * is unaffected.
- Version 0:5.14.0-284.177.1.rt14.462.el9_2 and below * is unaffected.
- Version 0:5.14.0-427.134.1.el9_4 and below * is unaffected.
- Version 0:5.14.0-570.123.1.el9_6 and below * is unaffected.
- Version 412.86.202606251120-0 and below * is unaffected.
- Version 413.92.202607141229-0 and below * is unaffected.
- Version 414.92.202606231112-0 and below * is unaffected.
- Version 415.92.202606200237-0 and below * is unaffected.
- Version 416.94.202606230218-0 and below * is unaffected.
- Version 417.94.202606250942-0 and below * is unaffected.
- Version 418.94.202606221349-0 and below * is unaffected.
- Version 4.19.9.6.202606241344-0 and below * is unaffected.
- Version 4.20.9.6.202606241928-0 and below * is unaffected.
- Version 4.21.9.6.202606241859-0 and below * is unaffected.
- Version 4.22.9.8.202606230855-0 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.