REDHAT-BUG-2568683: High severity Linux Linux kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved:
net: skbuff: propagate shared-frag marker in skbzerocopy()
skbzerocopy() moves frag descriptors from @from into @to and takes a reference on each frag, but it does not copy skbshinfo(from)->flags into skbshinfo(to)->flags. A destination skb holding the same page-cache backed frags as the source therefore reports skbhassharedfrag() as false.
That breaks the invariant relied on by later in-place writers. ESP input checks skbhassharedfrag() before deciding whether an uncloned nonlinear skb can skip skbcowdata(); with the marker lost, an skb that skbzerocopy() built for nfnetlinkqueue 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 SKBFLSHAREDFRAG when frag descriptors are copied, as done for the other frag-transfer helpers.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Systems are exposed when skb_zerocopy() builds packets for nfnetlink_queue or an Open vSwitch upcall and those packets later undergo ESP input processing. The described impact is that an unprivileged user can write to page-cache-backed data for a root-owned read-only file.
What condition allows the overwrite to occur?
The source packet must contain page-cache-backed fragments shared with the destination packet, but skb_zerocopy() fails to propagate the shared-fragment marker. ESP input then incorrectly treats the nonlinear packet as safe for in-place decryption and skips skb_cow_data().
How can I determine whether a system has the vulnerable behavior?
The vulnerable behavior is present if its kernel's skb_zerocopy() transfers fragment descriptors without also propagating SKBFL_SHARED_FRAG from the source skb to the destination skb. The issue is specifically relevant where packets can traverse nfnetlink_queue or Open vSwitch upcalls and subsequently reach ESP input.