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 C4B5638759F for ; Tue, 13 Jan 2026 15:30:12 +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=1768318212; cv=none; b=F6tE35/B8Y6pLZ+Ja7DN7fGfl+g9URC0TKjEILUkHQ2HwqPD8tVKrU0CDoeGVhrOShb8KodUdcNU0BCJIZOqpGdbzIRXjTFyYPkLDMP052Q5zB4EqBQ2KrIvf1q7+VkLIqLAl/w1sgXddDx8E4pxF5dmUceVNCXSKneoch/VyjQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318212; c=relaxed/simple; bh=GZNYguWauIU0qd/CoKn51SxUa6PRsiJP2PDG9Bl04Ag=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mHG8GiJC85p7Q1vUUxAZkg1rE1jQMXO9ujssbXrU6J3+TRD0VUiRvPLnWtMATlXy6r+WSoYx9OcHvl1CFqGgLdg7/Bmt/zEQ9FeHbUCmO7mfCFFnH/lzOaxG9OqQaoRcUmeu5+6F0hVsGSj+708toNFzPBarlBBc3/TAu3om/N0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=etA9o8yg; 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="etA9o8yg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DEFEC116C6; Tue, 13 Jan 2026 15:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318212; bh=GZNYguWauIU0qd/CoKn51SxUa6PRsiJP2PDG9Bl04Ag=; h=From:To:Cc:Subject:Date:Reply-To:From; b=etA9o8ygshAhC9x90AE22RTPlbrf3DmYDNFSHcKjD86PEueVfV6lhdyUY6PBHxByR F39rds+bcIOkFcoVresI6+NmyHmlubUaL4mBQaPy+0QKCMwhpAtFPXMiiwYnXl2Cqi wfNDg36xrmeI/jnFi4u2xKr1XHKDTvrvSwHJ3dq4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68775: net/handshake: duplicate handshake cancellations leak socket Date: Tue, 13 Jan 2026 16:29:01 +0100 Message-ID: <2026011359-CVE-2025-68775-6e68@gregkh> X-Mailer: git-send-email 2.52.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=3282; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/bwAbFpMVmw31QLVTZa8fppuFWxDVzfj9PlomQ67MSg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpKbu3rL1SadrCo9v6yVl6LsMrU6/bMqXr3i4IPnDpw +vW8w7XO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiVUkM84yTTiS+/pj6lqM3 7Jeb3kPdaYvvsTMs2DfNjzNw4ZO5KxOehJd/MNy9vdEhEgA= 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/handshake: duplicate handshake cancellations leak socket When a handshake request is cancelled it is removed from the handshake_net->hn_requests list, but it is still present in the handshake_rhashtbl until it is destroyed. If a second cancellation request arrives for the same handshake request, then remove_pending() will return false... and assuming HANDSHAKE_F_REQ_COMPLETED isn't set in req->hr_flags, we'll continue processing through the out_true label, where we put another reference on the sock and a refcount underflow occurs. This can happen for example if a handshake times out - particularly if the SUNRPC client sends the AUTH_TLS probe to the server but doesn't follow it up with the ClientHello due to a problem with tlshd. When the timeout is hit on the server, the server will send a FIN, which triggers a cancellation request via xs_reset_transport(). When the timeout is hit on the client, another cancellation request happens via xs_tls_handshake_sync(). Add a test_and_set_bit(HANDSHAKE_F_REQ_COMPLETED) in the pending cancel path so duplicate cancels can be detected. The Linux kernel CVE team has assigned CVE-2025-68775 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 3b3009ea8abb713b022d94fba95ec270cf6e7eae and fixed in 6.6.120 with commit 011ae80c49d9bfa5b4336f8bd387cd25c7593663 Issue introduced in 6.4 with commit 3b3009ea8abb713b022d94fba95ec270cf6e7eae and fixed in 6.12.64 with commit e1641177e7fb48a0a5a06658d4aab51da6656659 Issue introduced in 6.4 with commit 3b3009ea8abb713b022d94fba95ec270cf6e7eae and fixed in 6.18.3 with commit 3c330f1dee3cd92b57e19b9d21dc8ce5970b09be Issue introduced in 6.4 with commit 3b3009ea8abb713b022d94fba95ec270cf6e7eae and fixed in 6.19-rc2 with commit 15564bd67e2975002f2a8e9defee33e321d3183f 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-68775 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/handshake/request.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/011ae80c49d9bfa5b4336f8bd387cd25c7593663 https://git.kernel.org/stable/c/e1641177e7fb48a0a5a06658d4aab51da6656659 https://git.kernel.org/stable/c/3c330f1dee3cd92b57e19b9d21dc8ce5970b09be https://git.kernel.org/stable/c/15564bd67e2975002f2a8e9defee33e321d3183f