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 F25184D597C for ; Sun, 18 Oct 2026 16:24:49 +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=1792340691; cv=none; b=jqWilNfKm0Jpf0skX8tNV4vsHiQTVccvcSGa4iWNaud9nitSCrhOvsBJdokRjEh5Vm3nf8FX9i9oByZLnrXcMlXUIt4OdSot96JrzfNQOpmHKoKUzAcQrYI54oxaNP6HMbdiPK+vD53FXPWJvwgWlIzMGwwUnWsL2kiSsTOkmlg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340691; c=relaxed/simple; bh=ihA/VVxsjrvBCHGt2tMkfeKzPJErklYvh4LKyGEkQeU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ezeJ+UzKbm/k56iYQ9sWHKWTVfrLx+yRHO9GHu2oeXKJPokhY0MTD4ZzKk8vwHyQzMgr8YA9ejZmUyZjiEw79z3vA6iZo0gcQIfpDPLKb2w2V6hqZgf7AP7e152RqGU9+kWICApafNIcxRGqEUPbxtv2TFHqeAxA7y7liC3xfZo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nTbmoUWu; 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="nTbmoUWu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 876CC1F000C4; Sun, 18 Oct 2026 16:24:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340689; bh=BagndhYJqixiqvQIZsnTihOWC7QOvdhTh5uGMP2gXnc=; h=From:To:Cc:Subject:Date:Reply-To; b=nTbmoUWuaiU38l9bXDZKSWdNezy36UR3bUqH4AFuzfofLMYq3Lmd6R1T8ndXtUVkd 3Nc/9Q5o5aHOcq4J1Ax7a76sTWh36DbDfbPmTHEDL5tHnxiroatqWPcoP2cvG3bVBF bVPTMtWlwbhwh3v1sMieHE8mQddSeL2RVGTkc6pA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98852: net: extend IPv6 exthdr detection of tunneled packets Date: Sun, 18 Oct 2026 17:47:07 +0200 Message-ID: <2026101835-CVE-2026-98852-4adb@gregkh> X-Mailer: git-send-email 2.56.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=4694; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=35U+vY5ZCxGK7lAeocZpaSUIdf+bOpX12IiM7ChXFSs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXianvZ2mrL1q0T/74zeitdkiXgZ55hX6q1olC192e pNgd5mrI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayRJphNqvmhJ1LKzImPFa4 lsKyOevs2kS9CQwLtnjLaqtNFIsMVu3eszPsdf79qHBnAA== 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: net: extend IPv6 exthdr detection of tunneled packets Commit c4336a07eb6b ("net: correctly handle tunneled traffic on IPV6_CSUM GSO fallback") split skb_gso_has_extension_hdr() into mutually exclusive branches on skb->encapsulation. This did not yet address all paths: 1. With skb->encapsulation set, the outer header is not checked. IPv6 tunnels such as ip6_gre and ip6_tunnel add an outer Destination Options header by default (encap_limit). Their GSO packets skip software GSO, then skb_csum_hwoffload_help() sees the outer extension header and calls skb_checksum_help() on the GSO skb, which warns and drops it. 2. Tunnels over IPv6 without an outer transport header, such as ip6_tunnel, leave skb->transport_header at the inner transport header. skb_network_header_len() then spans the outer IPv6, tunnel and inner IP headers, a false positive. 3. UDP tunnels without an inner network header, such as SCTP-in-UDP or PSP, have no inner IPv6 header to check. Decide on the outer header alone. 4. Directly dereferencing inner_ip_hdr(skb)->version without skb_header_pointer() is unsafe. Instead, check ipv6_ext_hdr(nexthdr) on the outer IPv6 header and, if set, on the inner IPv6 header. Read the headers with skb_header_pointer(). Keep the skb_network_header_len() check when !skb->encapsulation to also catch encapsulated packets without skb->encapsulation (e.g., virtio). Use the same helper in skb_csum_hwoffload_help(). Its open coded test has the false positive of (2) and ignores the inner header. Background: checksum offload of tunneled packets invariants: Non-GSO skb: - If the inner packet is CHECKSUM_PARTIAL, Local Checksum Offload computes the outer checksum in software and the device offloads only the inner L4 checksum. - If the inner packet is CHECKSUM_NONE (e.g., SCTP-in-UDP, ESP-in-UDP, Remote Checksum Offload), the device offloads the outer UDP or GRE checksum instead. GSO skb: - A device with NETIF_F_GSO_UDP_TUNNEL_CSUM or NETIF_F_GSO_GRE_CSUM computes both inner and outer checksums per segment. The outer checksum is seeded with only the pseudo-header checksum. A NETIF_F_IPV6_CSUM device must parse through the outer headers to reach the inner ones. The Linux kernel CVE team has assigned CVE-2026-98852 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.81 with commit 33670f780e0120c3dacda188c512bbffe0b6044c and fixed in 6.12.113 with commit 44ba9dc568c878b699d05e7cf699572dc9df4b59 Issue introduced in 6.18.22 with commit a98b78116a27e2a57b696b569b2cb431c95cf9b6 and fixed in 6.18.56 with commit aa480f05aed7a9eee87d4a6fc90647fe9679c670 Issue introduced in 7.0 with commit c4336a07eb6b2526dc2b62928b5104b41a7f81f5 and fixed in 7.2.10 with commit cabacdf98e09eb74599c4d97d7bd7fd659598fb7 Issue introduced in 7.0 with commit c4336a07eb6b2526dc2b62928b5104b41a7f81f5 and fixed in 7.3-rc6 with commit 5f0764cb1c81a9712bce605d38efe6d844a70b29 Issue introduced in 6.1.168 with commit 2094a7cf91b71367b649f991aacc7b579f793d0b Issue introduced in 6.6.134 with commit ed71cf465c75f5688b07a35d373cd1d6b589c8ea Issue introduced in 6.19.12 with commit 732fdeb2987c94b439d51f5cb9addddc2fc48c42 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-98852 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/dev.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/44ba9dc568c878b699d05e7cf699572dc9df4b59 https://git.kernel.org/stable/c/aa480f05aed7a9eee87d4a6fc90647fe9679c670 https://git.kernel.org/stable/c/cabacdf98e09eb74599c4d97d7bd7fd659598fb7 https://git.kernel.org/stable/c/5f0764cb1c81a9712bce605d38efe6d844a70b29