From mboxrd@z Thu Jan 1 00:00:00 1970 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 C55C14D2EFC for ; Sun, 18 Oct 2026 16:24:11 +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=1792340652; cv=none; b=HjRagjnWhpvxKxutZEHy5HGssxmM5sAdpmbc5xO7zhDU81km9LMlsU6nuN8Ovsy8wGAduQrMpnQZ8HqeuLyal/YDeFT2Rr6zbG0D5mi3S7nLAJ5kaBh39QYbi8Tg+d8aZuUC8qSXraDaZTyPUlgccpxiu/RgWPs+SdTM4TlVxA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340652; c=relaxed/simple; bh=V1tncPjLjmg7w36bpi5wRVmp5TU2kUttAHSzos90jQM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ORCTHrW/HJDdwETf0ZwfFwkLjtJC3rk4T2HjljTeAEMsCiiym5lma8dz9IDHg4hpW6neT+cWBLZ6yTvUQBKCgvC7zWzbL7ZZuZfCUqn26lWwETGb8SsIZp10qpnsoMjI9vr8h5QOMiM8ab7vcIibIhNyO5QGTIG8c1SpeEkV9YE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Of8mR3W6; 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="Of8mR3W6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A10F1F000C4; Sun, 18 Oct 2026 16:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340651; bh=q+XcG1FtbSTsD6AvOTBtGuI0ZX/K6YxbuOWsfX5+Zcg=; h=From:To:Cc:Subject:Date:Reply-To; b=Of8mR3W6aPbiwFi0pDpnO8KAmnGBYDWeerfpCjrq61uCz8KcaM9WtlNmy6QC+pW5e Jyi99PWTBKeptL6v8Ccn7OAqtRvH+ZleEnoPmtyVxhadrI8Dr6TVQ6vLfzFWYqFEDH 2KKljMS0GvbtHGY+k8JUis/xNYlVrLvsRS2C+MF8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98846: sctp: check RCV_SHUTDOWN after the sendmsg connect wait Date: Sun, 18 Oct 2026 17:47:01 +0200 Message-ID: <2026101833-CVE-2026-98846-e4d4@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=3052; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j3ePCKWQMMjJ7RMH0WFI2ZGCEF2Zj6J5Tgq9sothUwk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXiZyFXRIqjCmrzm/L7iw0jQudSrf5FN9yYyc535MX PDyyFu5jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIaDXDfE8vsd33N5fWn53E fGpamlD/yRW7lBnmKXYU/9k1QT9k2/9zHru3Bzz/NT/kCAA= 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: check RCV_SHUTDOWN after the sendmsg connect wait sctp_wait_for_connect() drops the socket lock while it sleeps. An out-of-the-blue ABORT can then be processed from the socket backlog and unlink the association. If a concurrent shutdown(fd, SHUT_RD) sets RCV_SHUTDOWN, the waiter breaks with err == 0 before checking asoc->base.dead. Its final sctp_association_put() can then free the association, leaving sctp_sendmsg_to_asoc() to continue with a dangling pointer. Check RCV_SHUTDOWN along with the wait error in sctp_sendmsg_to_asoc() before using the association again. The check only accesses the socket, so it needs no additional association reference. Return the existing -ESRCH so that sctp_sendmsg() skips freeing a new association that may already have been destroyed. Keep sctp_wait_for_connect() unchanged to preserve its behavior for the connect() caller. The Linux kernel CVE team has assigned CVE-2026-98846 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 668c9beb9020d5834ee9e43c208190a07d2b1928 and fixed in 6.12.113 with commit e8f972b1759d26bbefe4c524caae1ed7c8a593bd Issue introduced in 4.16 with commit 668c9beb9020d5834ee9e43c208190a07d2b1928 and fixed in 6.18.56 with commit e701345d886e831fb593a0870d69c8c5de6fc938 Issue introduced in 4.16 with commit 668c9beb9020d5834ee9e43c208190a07d2b1928 and fixed in 7.2.10 with commit 222c41e0f50f1d5028be9baf0e1dcfc0bfa7f669 Issue introduced in 4.16 with commit 668c9beb9020d5834ee9e43c208190a07d2b1928 and fixed in 7.3-rc6 with commit 4f1da630d13de0370e2f6361f961f1c8b384af1c 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-98846 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/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/e8f972b1759d26bbefe4c524caae1ed7c8a593bd https://git.kernel.org/stable/c/e701345d886e831fb593a0870d69c8c5de6fc938 https://git.kernel.org/stable/c/222c41e0f50f1d5028be9baf0e1dcfc0bfa7f669 https://git.kernel.org/stable/c/4f1da630d13de0370e2f6361f961f1c8b384af1c