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 84E8E35C68D for ; Sat, 15 Aug 2026 06:14:10 +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=1786774451; cv=none; b=RoNnb1+2iXoggL29ux3eWC+dUMgwNSkkwlLlc9TByVrMCFc6zZ+k1t/XqlsHdJlpYKysxHrSV4xJmt6cfzcU6Lw7HzMEbGvirH77x0A+bvLnBgKYMQ/4aHJ4g65YzCXlp6DrVzeUpNH77XBHFhlukzQGLTD+nxBhMA0rCiOP898= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774451; c=relaxed/simple; bh=WzELAEVqP+gjko0YwAisgWrSsI9trI02kMY+AoouSHw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XTVH6W9uSQCezgP408eWbBwrXyoCyeKSfua3/r6GO8+yac6y6wAqq2g7EKxiQbfIdgXyZ/3RGnjk8JNA8aoizBssLsdHT5tcyv1IBt0kX9flcl45wkvCv5xpeegbRROJixnM4rnfYPaf3X36cXdeHVisymUiHwAIbdqlGLzKYsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l/z9A3yc; 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="l/z9A3yc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA3C71F000E9; Sat, 15 Aug 2026 06:14:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774450; bh=qHqZHoWZui+uyezS5KyHgjpjizz6Ub3uhOn6WtFmpUw=; h=From:To:Cc:Subject:Date:Reply-To; b=l/z9A3ycuDfhhZfCR9WPSQGCEGtQ/GAcLjO/4gv8o9cYA3PItZRUgojKndsL/OwmK 7T9sxmY3wsbf/RgxVuXEp4BZCRmuNsat2MaKK35uCfPhyLvJa2qBURrBp9vyH3ZGAY MtHv0CgRGFkIeZvL8i1yBEWpBCRZxSUSsaL4qBvs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72157: net: thunderbolt: Fix frags[] overflow by bounding frame_count Date: Sat, 15 Aug 2026 15:03:56 +0900 Message-ID: <2026081535-CVE-2026-72157-0426@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=3555; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=69D+YMVlGRnbEvccAG2sDqd4NWt3MCZgeEZ5lawCPv4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDPvPqX76b6cj2u34cWLPY77PJw+ES+ssCCouar+Sy s/a1nC3I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaydArDgsMyS0OaGRZO0A7v PtK1VkDLLlmymGFBu8Tzus+K8x+lzmaOuqvOcqnveXksAA== 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: thunderbolt: Fix frags[] overflow by bounding frame_count tbnet_poll() assembles a multi-frame ThunderboltIP packet into one skb. The first frame goes into the skb linear area and every further frame is added as a page fragment. skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, page, hdr_size, frame_size, TBNET_RX_PAGE_SIZE - hdr_size); A packet of frame_count frames therefore ends up with frame_count - 1 fragments. tbnet_check_frame() only bounds the peer supplied frame_count to TBNET_RING_SIZE / 4 (64), which is far above MAX_SKB_FRAGS (17 by default). A peer that sends a packet of 19 or more small frames pushes nr_frags past MAX_SKB_FRAGS, so skb_add_rx_frag() writes past skb_shinfo()->frags[] and corrupts memory after the shared info. Tighten the start of packet bound to MAX_SKB_FRAGS + 1 so a packet can never produce more fragments than frags[] can hold. This matches the recent skb frags overflow fixes in other receive paths, for example f0813bcd2d9d ("net: wwan: t7xx: fix potential skb->frags overflow in RX path") and 600dc40554dc ("net: usb: cdc-phonet: fix skb frags[] overflow in rx_complete()"). The Linux kernel CVE team has assigned CVE-2026-72157 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e and fixed in 6.6.145 with commit 2b3b4e5ff5a58ad32817824b0310e63908b12052 Issue introduced in 4.15 with commit e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e and fixed in 6.12.97 with commit e27beb4536cbf1d59e2d8c2840e87d972aba906f Issue introduced in 4.15 with commit e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e and fixed in 6.18.40 with commit e5824d5b841d99a2bcdd4e2c256643293bbc22c1 Issue introduced in 4.15 with commit e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e and fixed in 7.1.5 with commit fe6b606fbf0c3beb94ccf17fcf31d8c2138264e3 Issue introduced in 4.15 with commit e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e and fixed in 7.2-rc1 with commit 55d9895f89970501fe126d1026b586b04a224c27 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-72157 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: drivers/net/thunderbolt/main.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/2b3b4e5ff5a58ad32817824b0310e63908b12052 https://git.kernel.org/stable/c/e27beb4536cbf1d59e2d8c2840e87d972aba906f https://git.kernel.org/stable/c/e5824d5b841d99a2bcdd4e2c256643293bbc22c1 https://git.kernel.org/stable/c/fe6b606fbf0c3beb94ccf17fcf31d8c2138264e3 https://git.kernel.org/stable/c/55d9895f89970501fe126d1026b586b04a224c27