Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 415292571C7 for ; Tue, 19 Aug 2025 17:19:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755623968; cv=none; b=GXbbd8VCeMPSsORA4cL9h8Ur2VEZ+KfR40Q4RV//ov48xx5qfKAU/YRWxb9Hh/v6Jzk5KyxzDwhNe+xA7oz3ShwAMEq837WevSHoWDrXl2uVnm8QAk1aFj5smvYpWzd5Y1mkn9k+QMekJfG6+fV3LcIkN7IzUUcXvNuJ5gh5CtA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755623968; c=relaxed/simple; bh=+wvEhNzvYj73pZIl6NDMhBtosVAN8Rl07aRHiiBPLBY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MHOLoipFACHrfigjhL8s+OymyiKyYs2TgTviCept9cojWfqiQZC87mhXD0LLxa4g8/zybqW3ExkeqXjxfC5k+qDEQRdOvWMgE13Qxy0Yp8tZTPWg8B92X2s+2xnnoaSWmW5N2nQqM2UMzK7GjiUqcBhMwSV4dWPX9v0Y3bP1qjU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l7v4xiA+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="l7v4xiA+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70B59C4CEF1; Tue, 19 Aug 2025 17:19:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755623968; bh=+wvEhNzvYj73pZIl6NDMhBtosVAN8Rl07aRHiiBPLBY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=l7v4xiA+ZvHjgTamDvYoFyJqt5xRB+wkmIE6h6K7rqW9YP0CXzj93jmaLxax3M0KB vNTBLT6OBXOeGu+YyPOkvJBIrIAR5VGTm/fOkc+Vs/Ufyr6qxTJ4mfVS56U4Niz1ZJ A4eJOjHFN56U0o7vmcWaiVUo93+TZyuWBKhVJRyE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38572: ipv6: reject malicious packets in ipv6_gso_segment() Date: Tue, 19 Aug 2025 19:18:19 +0200 Message-ID: <2025081910-CVE-2025-38572-200b@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=4106; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BG46QVwlei6aEGG+oD7DXG9AyiTtqD3XjwjQ0vmgVYY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNl5mW7VF/G1/BldQX7sy47lj/6J3bjBz0+6WvzuZ4 9nLFdf2dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEjroyzHdWKztoE/jx5kMJ d4vCxU+SJu9j0GRYsCPfcrsgN/cVzc9poaxX2y96P64wAwA= 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: ipv6: reject malicious packets in ipv6_gso_segment() syzbot was able to craft a packet with very long IPv6 extension headers leading to an overflow of skb->transport_header. This 16bit field has a limited range. Add skb_reset_transport_header_careful() helper and use it from ipv6_gso_segment() WARNING: CPU: 0 PID: 5871 at ./include/linux/skbuff.h:3032 skb_reset_transport_header include/linux/skbuff.h:3032 [inline] WARNING: CPU: 0 PID: 5871 at ./include/linux/skbuff.h:3032 ipv6_gso_segment+0x15e2/0x21e0 net/ipv6/ip6_offload.c:151 Modules linked in: CPU: 0 UID: 0 PID: 5871 Comm: syz-executor211 Not tainted 6.16.0-rc6-syzkaller-g7abc678e3084 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:skb_reset_transport_header include/linux/skbuff.h:3032 [inline] RIP: 0010:ipv6_gso_segment+0x15e2/0x21e0 net/ipv6/ip6_offload.c:151 Call Trace: skb_mac_gso_segment+0x31c/0x640 net/core/gso.c:53 nsh_gso_segment+0x54a/0xe10 net/nsh/nsh.c:110 skb_mac_gso_segment+0x31c/0x640 net/core/gso.c:53 __skb_gso_segment+0x342/0x510 net/core/gso.c:124 skb_gso_segment include/net/gso.h:83 [inline] validate_xmit_skb+0x857/0x11b0 net/core/dev.c:3950 validate_xmit_skb_list+0x84/0x120 net/core/dev.c:4000 sch_direct_xmit+0xd3/0x4b0 net/sched/sch_generic.c:329 __dev_xmit_skb net/core/dev.c:4102 [inline] __dev_queue_xmit+0x17b6/0x3a70 net/core/dev.c:4679 The Linux kernel CVE team has assigned CVE-2025-38572 to this issue. Affected and fixed versions =========================== Issue introduced in 3.8 with commit d1da932ed4ecad2a14cbcc01ed589d617d0f0f09 and fixed in 6.1.148 with commit de322cdf600fc9433845a9e944d1ca6b31cfb67e Issue introduced in 3.8 with commit d1da932ed4ecad2a14cbcc01ed589d617d0f0f09 and fixed in 6.6.102 with commit ef05007b403dcc21e701cb1f30d4572ac0a9da20 Issue introduced in 3.8 with commit d1da932ed4ecad2a14cbcc01ed589d617d0f0f09 and fixed in 6.12.42 with commit 5489e7fc6f8be3062f8cb7e49406de4bfd94db67 Issue introduced in 3.8 with commit d1da932ed4ecad2a14cbcc01ed589d617d0f0f09 and fixed in 6.15.10 with commit 573b8250fc2554761db3bc2bbdbab23789d52d4e Issue introduced in 3.8 with commit d1da932ed4ecad2a14cbcc01ed589d617d0f0f09 and fixed in 6.16.1 with commit ee851768e4b8371ce151fd446d24bf3ae2d18789 Issue introduced in 3.8 with commit d1da932ed4ecad2a14cbcc01ed589d617d0f0f09 and fixed in 6.17-rc1 with commit d45cf1e7d7180256e17c9ce88e32e8061a7887fe 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-2025-38572 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: include/linux/skbuff.h net/ipv6/ip6_offload.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/de322cdf600fc9433845a9e944d1ca6b31cfb67e https://git.kernel.org/stable/c/ef05007b403dcc21e701cb1f30d4572ac0a9da20 https://git.kernel.org/stable/c/5489e7fc6f8be3062f8cb7e49406de4bfd94db67 https://git.kernel.org/stable/c/573b8250fc2554761db3bc2bbdbab23789d52d4e https://git.kernel.org/stable/c/ee851768e4b8371ce151fd446d24bf3ae2d18789 https://git.kernel.org/stable/c/d45cf1e7d7180256e17c9ce88e32e8061a7887fe