CVE-2026-99284: net: skbuff: propagate shared-frag marker in skb_zerocopy()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-99284 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.14 with commit af2806f8f90a150160be898cd85332459c83c5cb and fixed in 6.18.61 with commit 1c623e3cbf43f12dd4a72712079bfa247a9b8ba3 Issue introduced in 3.14 with commit af2806f8f90a150160be898cd85332459c83c5cb and fixed in 7.2.15 with commit d7d6ff98d5d1b400f02211f962ac32cc0020aeab Issue introduced in 3.14 with commit af2806f8f90a150160be898cd85332459c83c5cb and fixed in 7.3.2 with commit 1a9c180cd8435917b7516edfb1c9148032c28773 Issue introduced in 3.14 with commit af2806f8f90a150160be898cd85332459c83c5cb and fixed in 7.4-rc1 with commit 79dc34beb1fdb3da79753e51e15c68591a2561fe
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99284
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/core/skbuff.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/1c623e3cbf43f12dd4a72712079bfa247a9b8ba3 https://git.kernel.org/stable/c/d7d6ff98d5d1b400f02211f962ac32cc0020aeab https://git.kernel.org/stable/c/1a9c180cd8435917b7516edfb1c9148032c28773 https://git.kernel.org/stable/c/79dc34beb1fdb3da79753e51e15c68591a2561fe