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 892432E8B80 for ; Wed, 12 Nov 2025 22:01:39 +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=1762984899; cv=none; b=LZke732hPRKbHG4nkx40WbboGIUlymrs40poiGZzUyZpPmUpC2hg4bmaW44kRxABYffh2ekTpK2zXJjmEQH5rgSSL77Lw0LJRePk/b0vpR5L7lr8Ge6XReaMQcF2H4T7FAZlx/0CdB6MxJ+By6lkvIX+5uEpW/osJw6TTNbHuhs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762984899; c=relaxed/simple; bh=rFtQw/lsZt+GmhtotgLGjSag2FhKhGeYlNCONoy0+mY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nD9elZ5ietUxcteXt61QUGGD+TGRrbNzcpz+zrNJoX7YZxjnd5UBVkTR1F77o9Cc/8wBCO59pnr+UWeIVudLlkI9/y0N3NN5ooPjV07uJeJjOM1hxneW+4wRTBDwrGRAgZCl2thI+ImF6816rJQvt3WTjFz+/XwryOB7ZeU9gCI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n1Wrt+XM; 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="n1Wrt+XM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30293C4CEF7; Wed, 12 Nov 2025 22:01:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762984899; bh=rFtQw/lsZt+GmhtotgLGjSag2FhKhGeYlNCONoy0+mY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=n1Wrt+XMX2DA9nmgIe7YNybUJZIhAppLfRE9HUdXqL2BCJ9mc1DeEa+AMOv3SgO2S L1y+sWgCOXwJV3AnMel/Kx23RlS4Yb7IkLYJlsUmxrKVc4pUYvzQDHmnFOegcUZnr4 xnrBwsuvNe9VS1F3TptLMpqNPDJZdjX5hPjRHAv0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40187: net/sctp: fix a null dereference in sctp_disposition sctp_sf_do_5_1D_ce() Date: Wed, 12 Nov 2025 17:00:50 -0500 Message-ID: <2025111244-CVE-2025-40187-7826@gregkh> X-Mailer: git-send-email 2.51.2 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=3383; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SHoHP6GNxxEOVa+PM+6lIaSXXOAETOM20TQfPId1KjQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmizD0zfk9dEaSte9vfP6zmmdF73WL1EuFbCp4/LU5Pd 72yzP9CRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkSgTDfOcfN902fN1/19WK OftzdtKTG1ETdzPMlVNhKJI2/aQcveZolXdVgtSL1Co7AA== 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/sctp: fix a null dereference in sctp_disposition sctp_sf_do_5_1D_ce() If new_asoc->peer.adaptation_ind=0 and sctp_ulpevent_make_authkey=0 and sctp_ulpevent_make_authkey() returns 0, then the variable ai_ev remains zero and the zero will be dereferenced in the sctp_ulpevent_free() function. The Linux kernel CVE team has assigned CVE-2025-40187 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit 30f6ebf65bc46161c5aaff1db2e6e7c76aa4a06b and fixed in 5.4.301 with commit 1014b83778c8677f1d7a57c26dc728baa801ac62 Issue introduced in 4.17 with commit 30f6ebf65bc46161c5aaff1db2e6e7c76aa4a06b and fixed in 5.10.246 with commit 7f702f85df0266ed7b5bab81ba50394c92f3c928 Issue introduced in 4.17 with commit 30f6ebf65bc46161c5aaff1db2e6e7c76aa4a06b and fixed in 5.15.195 with commit dbceedc0213e75bf3e9f9f9e2f66b10699d004fe Issue introduced in 4.17 with commit 30f6ebf65bc46161c5aaff1db2e6e7c76aa4a06b and fixed in 6.1.157 with commit 025419f4e216a3ae0d0cec622262e98e8078c447 Issue introduced in 4.17 with commit 30f6ebf65bc46161c5aaff1db2e6e7c76aa4a06b and fixed in 6.6.113 with commit c21f45cfa4a9526b34d76b397c9ef080668b6e73 Issue introduced in 4.17 with commit 30f6ebf65bc46161c5aaff1db2e6e7c76aa4a06b and fixed in 6.12.54 with commit d0e8f1445c19b1786759ba72a38267e1449bab7e Issue introduced in 4.17 with commit 30f6ebf65bc46161c5aaff1db2e6e7c76aa4a06b and fixed in 6.17.4 with commit badbd79313e6591616c1b78e29a9b71efed7f035 Issue introduced in 4.17 with commit 30f6ebf65bc46161c5aaff1db2e6e7c76aa4a06b and fixed in 6.18-rc1 with commit 2f3119686ef50319490ccaec81a575973da98815 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-40187 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/sm_statefuns.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/1014b83778c8677f1d7a57c26dc728baa801ac62 https://git.kernel.org/stable/c/7f702f85df0266ed7b5bab81ba50394c92f3c928 https://git.kernel.org/stable/c/dbceedc0213e75bf3e9f9f9e2f66b10699d004fe https://git.kernel.org/stable/c/025419f4e216a3ae0d0cec622262e98e8078c447 https://git.kernel.org/stable/c/c21f45cfa4a9526b34d76b397c9ef080668b6e73 https://git.kernel.org/stable/c/d0e8f1445c19b1786759ba72a38267e1449bab7e https://git.kernel.org/stable/c/badbd79313e6591616c1b78e29a9b71efed7f035 https://git.kernel.org/stable/c/2f3119686ef50319490ccaec81a575973da98815