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 B2A2E3E7151 for ; Tue, 6 Oct 2026 10:30:25 +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=1791282627; cv=none; b=EO32ylkyN0EPEDmyHt9lKzkdkZaQW+DctaturSB9Xa5OSl+zxOtJEVSmTBqcGldc6cQri3lJgYwB69okZkSMfpPW9nab42gdLTJZw9Deqb2qn9EDyhAu5VZa1ftH62jrcAeYkJN3HdaQWzXwqdhqunn3IocsSkawNOZskHteHiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282627; c=relaxed/simple; bh=w56BRkRpxbcHuB7fud7lL7jiQ7WFSM3WeelNFO/iPQo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZRUPJPTCKDhrGaG+05mlpWpP70BOuepgtN3maY5bQV73y6Fs0VF+JwiCXH8zHr7c70ypV32TVeomQrvp0zvj5ODELWz0NFzPIhlBLDTCxQyb4Fr9+PqvP/ZfLhmpk3Eke96N3rcFyTjUpYyhMpeV9jkl0Vxi8FMgjU495FXq968= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DmLCNJxg; 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="DmLCNJxg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D07591F000FF; Tue, 6 Oct 2026 10:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282625; bh=w9IRLUmdcvG+UtLuhKZ1gU9aop0JVTOZq8HJInswWRs=; h=From:To:Cc:Subject:Date:Reply-To; b=DmLCNJxgD9PxLIuYNjVcBjDeeJ/RMh1VSpZU9CGji3LhLWYVXmBbqq63R45uhb765 ihzw7IgiqlNz6HWi9iJvRrI9X8X8xs6t4CHTYKHNk44lvwCporFU6bEIKK6CsTK+v6 o+0e+quJStwU1uv5yuLcfwSUXSlGjjEIKSXxeRCE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98371: xfrm: iptfs: fix runt reassembly panic from short inner tot_len Date: Tue, 6 Oct 2026 10:47:52 +0200 Message-ID: <2026100623-CVE-2026-98371-c38a@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=3429; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YdEdNwfsNpuBNCOxmhVohy2jgcR7WUyk0OOJD30L10g=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtipv/qfRo73ia4FlkfrWh7JPQ8y3TpZluMb3SN3fQ bct76tbRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk6h2G+bUXPfKvROy0/3rM SHLHycU7ppxYUccwP3z3tds5N6Z5fmJ2eBCyhckj5qAvAwA= 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: xfrm: iptfs: fix runt reassembly panic from short inner tot_len When the start of an inner packet is split across two outer packets such that fewer than 4 bytes land at the end of the first one, __input_process_payload() saves those bytes as a runt and skips the iplen/iphlen validation performed for in-place packets. When the continuation packet arrives, iptfs_reassem_cont() only requires the declared inner length to be >= sizeof(ra_runt) (6) before allocating the reassembly skb with that attacker-controlled length. However, __iptfs_iphlen() always returns the fixed minimum IP header size (20 for IPv4, 40 for IPv6), so for an inner IPv4 tot_len in [6, 19] the header-completion copy writes past the declared packet length, and the subsequent "ipremain -= copylen" underflows to ~4GB, leaving the payload copy length bounded only by blkoff (up to 64KB). At runtime the skb_put() tailroom check turns this into skb_over_panic(), i.e. an unprivileged kernel panic (DoS), reachable locally via userns+netns IPTFS SAs and remotely against IPTFS VPN gateways when the decrypted outer skb is linear (e.g. AF_PACKET taps, tun/tap delivery). Align the runt path with the normal path by requiring the declared inner length to cover at least the IP header size. This also subsumes the previous >= sizeof(ra_runt) check, since the minimum IP header is always larger than the runt buffer. This issue was found by the autokbug dynamic kernel fuzzer at Tencent Yunding Lab. The Linux kernel CVE team has assigned CVE-2026-98371 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 07569476544681816335099929ff3494dfbf6b05 and fixed in 6.18.54 with commit a7018ee0ea8622ed59edc064be4e0f2c26464f53 Issue introduced in 6.14 with commit 07569476544681816335099929ff3494dfbf6b05 and fixed in 7.2.8 with commit 5b8afb56ccb7c014b0f1ac40341708b200443c2d Issue introduced in 6.14 with commit 07569476544681816335099929ff3494dfbf6b05 and fixed in 7.3-rc4 with commit dc33262be1fe43d0eb0b84fb58c6ed42e2f64a8c 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-98371 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/xfrm/xfrm_iptfs.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/a7018ee0ea8622ed59edc064be4e0f2c26464f53 https://git.kernel.org/stable/c/5b8afb56ccb7c014b0f1ac40341708b200443c2d https://git.kernel.org/stable/c/dc33262be1fe43d0eb0b84fb58c6ed42e2f64a8c