net: skbuff: propagate shared-frag marker in skb_zerocopy()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fe8477e23dd2ee6bce231d65f2586a333b211dc0, Kernel 1a9c180cd8435917b7516edfb1c9148032c28773, Kernel 1c623e3cbf43f12dd4a72712079bfa247a9b8ba3 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: net: skbuff: propagate shared-frag marker in skb_zerocopy() skb_zerocopy() moves frag descriptors from @from into @to and takes a reference on each frag, but it does not copy skb_shinfo(from)->flags into skb_shinfo(to)->flags. A destination skb holding the same page-cache backed frags as the source therefore reports skb_has_shared_frag() as false. That breaks the invariant relied on by later in-place writers. ESP input checks skb_has_shared_frag() before deciding whether an uncloned nonlinear skb can skip skb_cow_data(); with the marker lost, an skb that skb_zerocopy() built for nfnetlink_queue or for an openvswitch upcall is decrypted in place, letting an unprivileged user write into the page cache of a root-owned read-only file. Propagate SKBFL_SHARED_FRAG when frag descriptors are copied, as done for the other frag-transfer helpers.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=af2806f8f90a150160be898cd85332459c83c5cb <fe8477e23dd2ee6bce231d65f2586a333b211dc0, >=af2806f8f90a150160be898cd85332459c83c5cb <1a9c180cd8435917b7516edfb1c9148032c28773, >=af2806f8f90a150160be898cd85332459c83c5cb <1c623e3cbf43f12dd4a72712079bfa247a9b8ba3, >=af2806f8f90a150160be898cd85332459c83c5cb <79dc34beb1fdb3da79753e51e15c68591a2561fe, >=af2806f8f90a150160be898cd85332459c83c5cb <d7d6ff98d5d1b400f02211f962ac32cc0020aeab, =3.14 | fe8477e23dd2ee6bce231d65f2586a333b211dc0, 1a9c180cd8435917b7516edfb1c9148032c28773, 1c623e3cbf43f12dd4a72712079bfa247a9b8ba3, 79dc34beb1fdb3da79753e51e15c68591a2561fe, d7d6ff98d5d1b400f02211f962ac32cc0020aeab |
| linux-kernel: Kernel | >=6.13.0 <6.18.61, >=6.19.0 <7.2.15, >=7.3.0 <7.3.2, >=3.14.0 <6.12.117 | 6.18.61, 7.2.15, 7.3.2, 6.12.117 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket