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 3FA31372EFB for ; Sat, 15 Aug 2026 06:28:47 +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=1786775328; cv=none; b=nLz7qW+88ltCDkJOPSH+ftwV0syKUswpkDNkih+xFexWHCBvjupSZdRJGTwSLRqnKxR41i09PJi0QXGDz5ZJBvc7NQkAHL2UkFIUdXUTdKQPeaqXgpw1DbGZ9+kOdLjbBnalh39O3gitGHQOPCz9TxJL6pKX9wVReJzSSLVoxz4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775328; c=relaxed/simple; bh=YY2Oh0HUgYDRPIw7fYVVOCUsvlG1v5CPMu5tYTCuVzI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ekzs08V/tXshCxtTzPn0HXkLBie19pOXLUSp/dCK1eYrt9ohIyyD0bCv9N9tIcBYJ/lUxNrIIqmTCRJudSDrMzs6o+tE+rltCz5Zm/WlmDtjIA0+0pGXJ8CqMSvyXDY/VIdkaZqe9CyScWCZNrDv+z5XgvaEJXoeytbmn081r1A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uzfwVbLj; 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="uzfwVbLj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 980C61F000E9; Sat, 15 Aug 2026 06:28:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775327; bh=ebgKZWcospDQQsMGW6EOrh9JVI3wyr3xAb6nrwZh7P0=; h=From:To:Cc:Subject:Date:Reply-To; b=uzfwVbLjaKtaepmV5XLbzNX4Ss6ndW6FW+8wK1jFTBh1MqU9noxlGAgZJGzp/3211 Yrq8AXjy7RHulOIPloP85tZhFEHGJn/oepl7ZfR9PyjbYl6XFqeE43k2xDSMC510dp SzOBNAKfrivrfNSweS/jYkwSydEuSvlZ6ejCZyfc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72447: sctp: hold socket lock when dumping endpoints in sctp_diag Date: Sat, 15 Aug 2026 15:08:46 +0900 Message-ID: <2026081530-CVE-2026-72447-0526@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=4499; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rJTG8u8kgZtiY4znzcnJFDI9CuvPWst+zE3WXt4FtYA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDN9CyzXsImattNK7VHy16nfQZ82CBev//5gpuExL4 tflgqApHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRH8wM830mZNR9WCGwa1Le seYzs1hvdD5beoZhvkP+91XGf2f2vg/fsTBXkzea//S7cwA= 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: sctp: hold socket lock when dumping endpoints in sctp_diag SCTP_DIAG endpoint dumping was traversing endpoint address lists without holding lock_sock(), while those lists could change concurrently via socket operations (e.g., bindx changes). This creates a race where nla_reserve() counts addresses under RCU protection, but the subsequent copy may see fewer entries, potentially leaking uninitialized memory to userspace. Fix this by: - Taking a reference on each endpoint during hash traversal - Moving socket operations (lock_sock()) outside read_lock_bh() - Serializing address list access during dump - Reworking sctp_for_each_endpoint() to support restart-based traversal with (net, pos) tracking Also: - Add WARN_ON_ONCE() for inconsistent address counts - Fix idiag_states filtering for LISTEN vs association cases - Skip dumping endpoints being freed (ep->base.dead) - Move dump position tracking into iterator, removing cb->args[4] and its comment for sctp_ep_dump()., - Update the comment for cb->args[4] and remove the comment for unused cb->args[5] for sctp_sock_dump(). Note: traversal is restart-based and may re-scan buckets multiple times, but this is acceptable due to small bucket sizes and required to support sleeping-safe callbacks. This issue was reported by Nico Yip (@_cyeaa_) working with TrendAI Zero Day Initiative. The Linux kernel CVE team has assigned CVE-2026-72447 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit 8f840e47f190cbe61a96945c13e9551048d42cef and fixed in 5.10.261 with commit f98c294a9369b6fe89e652c06357ee594be4dfa2 Issue introduced in 4.7 with commit 8f840e47f190cbe61a96945c13e9551048d42cef and fixed in 5.15.212 with commit 8b38e3dcfde3077dbc03eb8ef88e03cc19f70b8a Issue introduced in 4.7 with commit 8f840e47f190cbe61a96945c13e9551048d42cef and fixed in 6.1.178 with commit ec3c2d59a192e17e1014ba71afc368ba162ecac3 Issue introduced in 4.7 with commit 8f840e47f190cbe61a96945c13e9551048d42cef and fixed in 6.6.145 with commit 722576aba0a6d9423714550b1c03239b0f0def77 Issue introduced in 4.7 with commit 8f840e47f190cbe61a96945c13e9551048d42cef and fixed in 6.12.97 with commit abe7f8828e6ac8be858870c2bf836258844f97d5 Issue introduced in 4.7 with commit 8f840e47f190cbe61a96945c13e9551048d42cef and fixed in 6.18.40 with commit 207bb4ce8fe7de961ae7bb33569ad2cd61f44954 Issue introduced in 4.7 with commit 8f840e47f190cbe61a96945c13e9551048d42cef and fixed in 7.1.5 with commit f09a245f33e567b604efa1960b7a2d25dd9c8713 Issue introduced in 4.7 with commit 8f840e47f190cbe61a96945c13e9551048d42cef and fixed in 7.2-rc1 with commit 7d8297e26b4e20b5d1c3c3fe51fe81a1c7fbc823 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-72447 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/net/sctp/sctp.h net/sctp/diag.c net/sctp/socket.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/f98c294a9369b6fe89e652c06357ee594be4dfa2 https://git.kernel.org/stable/c/8b38e3dcfde3077dbc03eb8ef88e03cc19f70b8a https://git.kernel.org/stable/c/ec3c2d59a192e17e1014ba71afc368ba162ecac3 https://git.kernel.org/stable/c/722576aba0a6d9423714550b1c03239b0f0def77 https://git.kernel.org/stable/c/abe7f8828e6ac8be858870c2bf836258844f97d5 https://git.kernel.org/stable/c/207bb4ce8fe7de961ae7bb33569ad2cd61f44954 https://git.kernel.org/stable/c/f09a245f33e567b604efa1960b7a2d25dd9c8713 https://git.kernel.org/stable/c/7d8297e26b4e20b5d1c3c3fe51fe81a1c7fbc823