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 E06CF309EE7 for ; Wed, 12 Nov 2025 10:24:53 +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=1762943094; cv=none; b=g8CYRQMWOyweV+xG/PU6TeilGxZC16kkflExhA/BaTBpOj09HCy1mI9i5P0jRRmVYDMQD+ZHyvtiMdbm56ttWz5h7dQZjpbGithVJ06HiRHKojofgkdbPQGqwf1hDO7CZLMEXd/qqdTDgOdxnt2TjENgu4p08Gj6UEeKWHJjHgs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943094; c=relaxed/simple; bh=YnwRt8c7Sv3veTcZlxucOKh2ygy7nWMM84oL73YtS4U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=omtIb3wM+cCT4qfaENDNn1NErhc5STL/ILwbVncl9I3Rhekm2umpvBGb94X9gQxg6ktwJywTi7WNRZK/vIRk4FbMttLrq7ntZFxrXlSrB+IBrbJnX0A7hJAGtOJmQ6BIQCU5O54BZOnMX8mAbUc+/OkH/v3idaO3LEa1fg9JGIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nlO94xWq; 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="nlO94xWq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1758C19421; Wed, 12 Nov 2025 10:24:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943093; bh=YnwRt8c7Sv3veTcZlxucOKh2ygy7nWMM84oL73YtS4U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nlO94xWq3DxIhKKY9AuLHj++jhZtJb0yr4QZYRiwyuVDTh76dIKcE5NETVYj9lGmr jJUh4dhWDaewABIzwxkDVVRWRqIL6GQG2jaJvKakSNFoKW4/1xVV1gpqcmX+vsGNbB x9pf0N7s1ote5k/pbFqZqzQI9P5ME4iJB4FoZ9Ac= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40158: ipv6: use RCU in ip6_output() Date: Wed, 12 Nov 2025 19:24:34 +0900 Message-ID: <2025111258-CVE-2025-40158-4c9d@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=1902; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=78wHJ4qBTz0YnFNzG7jhnP2yzZdoXQZh7D0lln2arSQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCfZJM20vVGs7Kflp775xx0R1WsC35vMeJb3/rC8vX HR/mseljlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjInEMMCzZv6l/n9k9vS9iu vTXfmmSnfrXn1mCYZyPhx7DZ5piKt8rUv59DPMPjHqYoAQA= 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: use RCU in ip6_output() Use RCU in ip6_output() in order to use dst_dev_rcu() to prevent possible UAF. We can remove rcu_read_lock()/rcu_read_unlock() pairs from ip6_finish_output2(). The Linux kernel CVE team has assigned CVE-2025-40158 to this issue. Affected and fixed versions =========================== Issue introduced in 4.13 with commit 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 and fixed in 6.17.3 with commit 0393f85c3241c19ba8550f04a812e7d19f6b3082 Issue introduced in 4.13 with commit 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 and fixed in 6.18-rc1 with commit 11709573cc4e48dc34c80fc7ab9ce5b159e29695 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-40158 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/ipv6/ip6_output.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/0393f85c3241c19ba8550f04a812e7d19f6b3082 https://git.kernel.org/stable/c/11709573cc4e48dc34c80fc7ab9ce5b159e29695