net/sched: fix pedit partial COW leading to page cache corruption
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel d5d01d35a5a7d36f7cb679b67d9cbdd5205672dc, Kernel 5.15.211, Kernel 5.18 and 15 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=b773640d5bb9e2acfd91e2695717af04d47aa116 <d5d01d35a5a7d36f7cb679b67d9cbdd5205672dc, >=5.15.41 <5.15.211, >=5.17.9 <5.18, >=5.4.195 <5.5, >=8b796475fd7882663a870456466a4fb315cc1bd6 <2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b, >=8b796475fd7882663a870456466a4fb315cc1bd6 <3dee9d0c198faeb95d052c1b94c2958751a28512, >=8b796475fd7882663a870456466a4fb315cc1bd6 <899ee91156e57784090c5565e4f31bd7dbffbc5a, >=8b796475fd7882663a870456466a4fb315cc1bd6 <a071e057518decc5e3bec89855758f5f8786f2c5, >=8b796475fd7882663a870456466a4fb315cc1bd6 <b198ed4e52580a7238c7c7082f03906f8b310313, >=8b796475fd7882663a870456466a4fb315cc1bd6 <b685d6ef6f07a3b5ce814565a25f39f2157538a5, >=abe35bf3be51482593076d516a680d79e5fbc8e1 <544d857b42a1734b923040e13aa61a6fd4746cf2, =2ec2dd7d51a9320151f275ddbb2b53260fb32ca1, =5.18, =c19cc520b3d69904e9518d401ad0df7f4702aca0, =d0c38a914b0c4c21d553da801003d36979016726, >=4.19.244 <4.20, >=5.10.117 <5.10.260 | d5d01d35a5a7d36f7cb679b67d9cbdd5205672dc, 5.15.211, 5.18, 5.5, 2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b, 3dee9d0c198faeb95d052c1b94c2958751a28512, 899ee91156e57784090c5565e4f31bd7dbffbc5a, a071e057518decc5e3bec89855758f5f8786f2c5, b198ed4e52580a7238c7c7082f03906f8b310313, b685d6ef6f07a3b5ce814565a25f39f2157538a5, 544d857b42a1734b923040e13aa61a6fd4746cf2, 4.20, 5.10.260 |
| linux-kernel: Kernel | >=5.10.117 <5.10.260, >=5.15.41 <5.15.211, >=5.17.9 <5.18, >=5.18.0 <6.1.177, >=5.4.195 <5.5, >=6.13.0 <6.18.36, >=6.19.0 <7.0.13, >=6.2.0 <6.6.144, >=6.7.0 <6.12.94, >=4.19.244 <4.20 | 5.10.260, 5.15.211, 5.18, 6.1.177, 5.5, 6.18.36, 7.0.13, 6.6.144, 6.12.94, 4.20 |
Exploit evidence
1 public sources
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket