Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06A9B3A63F3 for ; Fri, 28 Aug 2026 06:35:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787898923; cv=none; b=BdJCdZvdjAenJ8h/mvM9FOdD+m6NSipeeMydGySsoroUV6fBWAgem4CQrp7d4GLWSd+2y0ouYkewqvO/1N7mN4NNO5MJc2f4RupTq2ok9nymCFYrSqRO9pmOnD4Kiy/60co1mwNwdrPuOr4gTW+SA8Jwy42BHNwBigscATZ7tWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787898923; c=relaxed/simple; bh=RE20L4WN/N8/UgDZtK/ZgINUxkGn8PE1nzrnRjPtWGc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hnXIlvaA6tvIZhGLA2RtaughyubZXbiErekYYydhwG0MkqHOWmuLECSD4bR/K0UF/FxlB8GMBYzR5zKnSxJiWRQTCmBMRoS5o7LxVz6mm1g8gYolHtdicOyOxB/j7xg3BQ4h/OIOI5IZTf+OpWZqgJIIL8cFi4uxkSgA2DGbcnE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vAik3n4c; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vAik3n4c" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E83F1F000E9; Fri, 28 Aug 2026 06:35:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787898921; bh=v9MPESeahT2qArzWtbzr9KIm0E9knppuBcy1COuuYf4=; h=From:To:Cc:Subject:Date:Reply-To; b=vAik3n4cI5jF342S11utAnXFcOL4Gxil7od+ieqmTw3XsGKA766C+Ojs30Fz+1ph3 Yb47GOetpTOl+NI/PDuUg/vc5X4BQzfqu3GYvCH7GGERGFs00C4Vh1OWDmjzNxHE5P s+MnLYRrBYQMWeglRyd4WThZ7gck1pYdJ6c2Opbk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80590: inet: frags: strip GSO state from fragments before reassembly Date: Fri, 28 Aug 2026 08:35:17 +0200 Message-ID: <2026082816-CVE-2026-80590-241e@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=6902; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lWEWT6Z4Ae5otpsbjrXVgzz+I3/1gWQsa//9kRIX2KA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkTdVRWbuFSCzJd6/ib55zh39W5kvLpe81fp0aeWrLv5 vxDXy4bdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEtq1hmMPNv2bLjjOFom+X XJ1SqTcztOVx1WuGBQtY9JdpcR2+YxcSd2GR58GqWs2veQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: inet: frags: strip GSO state from fragments before reassembly A virtio_net_hdr (tun/tap, or AF_PACKET with PACKET_VNET_HDR) can mark an IPv4 or IPv6 fragment as GSO; nothing relates gso_type to frag_off. inet_frag_reasm_prepare()/inet_frag_reasm_finish() keep the first fragment's skb as the head of the reassembled datagram, including its shinfo->gso_size/gso_type/gso_segs, and chain the remaining fragments on frag_list with whatever linear/paged layout they arrived with. After ip_defrag() (ip_local_deliver(), nf_defrag_ipv4, ...) the reassembled skb therefore still claims to be GSO (SKB_GSO_DODGY), and the next software segmentation point - udp_rcv_segment() on local delivery, validate_xmit_skb(), or the ip_finish_output_gso() slow path - hands it to skb_segment(). skb_segment()'s frag_list walk assumes GRO-shaped input and hits one of its BUG_ON()s. Two writes to a tap by an unprivileged user in its own userns are enough: kernel BUG at net/core/skbuff.c:4899! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 1000 PID: 82 Comm: poc Not tainted 7.2.0-pentest+ #2 RIP: 0010:skb_segment+0x20ca/0x48b0 Call Trace: __udp_gso_segment+0x29a/0x27d0 udp4_ufo_fragment+0x458/0x6c0 inet_gso_segment+0x429/0x1340 skb_mac_gso_segment+0x233/0x4f0 __skb_gso_segment+0x308/0x660 udp_queue_rcv_skb+0x440/0xad0 udp_unicast_rcv_skb+0xc7/0x2c0 udp_rcv+0x16ce/0x2260 ip_protocol_deliver_rcu+0x197/0x2d0 ip_local_deliver+0x430/0x690 ip_rcv+0x16f/0x1f0 __netif_receive_skb_one_core+0x15e/0x1c0 __netif_receive_skb+0x1e/0x110 netif_receive_skb+0xf6/0x5c0 tun_rx_batched.isra.0+0x3ab/0x790 tun_get_user+0x17c3/0x3550 tun_chr_write_iter+0xba/0x1b0 vfs_write+0x646/0x1130 Kernel panic - not syncing: Fatal exception in interrupt This runs with BH disabled, so it is a panic rather than an oops. The same is reachable with CAP_NET_RAW in a netns where a defrag point precedes a GSO point, and from a guest whose VMM forwards virtio_net_hdr to a tap. The SKB_GSO_DODGY frag_list checks added by commit 3dcbdb134f32 ("net: gso: Fix skb_segment splat when splitting gso_size mangled skb having linear-headed frag_list") and by commit 9e4b7a99a03a ("net: gso: fix panic on frag_list with mixed head alloc types") do not cover it: page-backed heads skip them, and kmalloc heads skip them when gso_size == skb_headlen(head), which the sender controls. An skb entering a frag queue is an IP fragment by definition and cannot legitimately carry GSO state: GRO does not merge fragments and the stack segments before it fragments, so only untrusted sources are affected. This has been reachable since commit f43798c27684 ("tun: Allow GSO using virtio_net_hdr"), the first path that let userspace attach GSO metadata to an IP fragment. Reset the GSO fields of every fragment as it is queued, in inet_frag_queue_insert(), which IPv4, IPv6, nf_conntrack_reasm and 6lowpan reassembly share; then neither the head nor the frag_list members of the reassembled skb carry them (the members matter too: the ip_do_fragment()/ip6_fragment() fast paths send them out as they are). The head may remain CHECKSUM_PARTIAL; that is already accepted on receive and resolved by skb_checksum_help() in ip_do_fragment()/ip6_fragment() on forward. Tested on top of net.git (dc4b95b8fee9), x86_64: the tap reproducer above, two further IPv4 frag_list geometries that reach BUG_ON(i >= nfrags) and BUG_ON(!list_skb->head_frag), and an IPv6 fragment-header variant (udp6_ufo_fragment()) each panic the unpatched kernel; with this patch all four datagrams are delivered intact and nothing is logged. The Linux kernel CVE team has assigned CVE-2026-80590 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.27 with commit f43798c27684ab925adde7d8acc34c78c6e50df8 and fixed in 5.10.268 with commit cfdbc8c2e6f9ef5d8b8e54859da03dfe682b0bee Issue introduced in 2.6.27 with commit f43798c27684ab925adde7d8acc34c78c6e50df8 and fixed in 5.15.219 with commit 29dda278a5ed272f2230ff4eaa23cf403107bba0 Issue introduced in 2.6.27 with commit f43798c27684ab925adde7d8acc34c78c6e50df8 and fixed in 6.1.186 with commit 14a8f3e10fa9a5abd6cedcdaa0c0b7ea9a09f234 Issue introduced in 2.6.27 with commit f43798c27684ab925adde7d8acc34c78c6e50df8 and fixed in 6.6.155 with commit 3edf721bb4b99d272c336631b44e3d8ff9a4f31b Issue introduced in 2.6.27 with commit f43798c27684ab925adde7d8acc34c78c6e50df8 and fixed in 6.12.107 with commit dec2edb7aaf12a8878b3a03172ea8fc277b8eaad Issue introduced in 2.6.27 with commit f43798c27684ab925adde7d8acc34c78c6e50df8 and fixed in 6.18.48 with commit c49f04e8d2b94dbb8d9fd99731dd3f00589c8ace Issue introduced in 2.6.27 with commit f43798c27684ab925adde7d8acc34c78c6e50df8 and fixed in 7.1.12 with commit 69b73b74d9eb45f5560a8fe4fa406ada580e1340 Issue introduced in 2.6.27 with commit f43798c27684ab925adde7d8acc34c78c6e50df8 and fixed in 7.2.2 with commit da857e448322a2e871ce3ecc2900027041160d43 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-80590 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/ipv4/inet_fragment.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/cfdbc8c2e6f9ef5d8b8e54859da03dfe682b0bee https://git.kernel.org/stable/c/29dda278a5ed272f2230ff4eaa23cf403107bba0 https://git.kernel.org/stable/c/14a8f3e10fa9a5abd6cedcdaa0c0b7ea9a09f234 https://git.kernel.org/stable/c/3edf721bb4b99d272c336631b44e3d8ff9a4f31b https://git.kernel.org/stable/c/dec2edb7aaf12a8878b3a03172ea8fc277b8eaad https://git.kernel.org/stable/c/c49f04e8d2b94dbb8d9fd99731dd3f00589c8ace https://git.kernel.org/stable/c/69b73b74d9eb45f5560a8fe4fa406ada580e1340 https://git.kernel.org/stable/c/da857e448322a2e871ce3ecc2900027041160d43 https://git.kernel.org/stable/c/d5dc1e69fd7258ea605c9952e5d5947539159ae3