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 5DEBD29617D for ; Fri, 23 Jan 2026 14:15:42 +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=1769177742; cv=none; b=EaWv+sgnCmdy/srORghxpYpR2yxCB17DsFGI2C2544PusTTR4GYMrT5K9wj2EcpBA3DGDaGf+TnhjyRADEX9qUsNZG/SfepM2R5cPup8WNsXRFqAM8KOdGejdl2o5ClX+SwQNHrq4Cyx3X/4sqd19K/govgMDdgsfk2rXbwar40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769177742; c=relaxed/simple; bh=fFmqLT1UIjttp2kg1SNoL3RBfYF4XzIeD7Lw48zMm+g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZQKYavWjsisq6bKoOKhA9AzBnvDXAcW4BNKpOQ4uCZoAOESIa1TkZQuGqkvHXEAqEtr5ouTeq8rH+WrGplllJhBJMw3cKxbSaz7w08YtZfvNetDI6MZ9llz6AP8uD9pYt4IlEtBdRVb+lQbRKK4aRRwbEGg2sESTgRC+T8LpESE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ayi8awPu; 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="ayi8awPu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DE89C4CEF1; Fri, 23 Jan 2026 14:15:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769177742; bh=fFmqLT1UIjttp2kg1SNoL3RBfYF4XzIeD7Lw48zMm+g=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ayi8awPu/fuwfhImaOKvVsVSIwYXluJKlFJfbWch3d8XMPndA4F4R4fxRI+uPl377 aq5v0d5LRcuy0DFH5Q7clFvnWMvjCwwXaX3c4JKfAxjSee93yXP9Uwxv4viu2TNdqC f6tb1lS5yWdpwM5wSUHsVpDop+wvXtXuHPzVoaAI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71148: net/handshake: restore destructor on submit failure Date: Fri, 23 Jan 2026 15:15:28 +0100 Message-ID: <2026012327-CVE-2025-71148-78e6@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=2482; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tRZ3M2szq1AZmYUJzGu9CxfGmfNxua44pozPAcvFcJQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnFTQ1nDt29rtjPceAI55rq1WLq6/rX2e8NPO6x4YwYy 8bwBzrZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR6RUMC846iexuZDussp0/ mdde64TN+73mFgwLTp/giow4Hr39sDdb9cTTBwJvaETVAQA= 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: restore destructor on submit failure handshake_req_submit() replaces sk->sk_destruct but never restores it when submission fails before the request is hashed. handshake_sk_destruct() then returns early and the original destructor never runs, leaking the socket. Restore sk_destruct on the error path. The Linux kernel CVE team has assigned CVE-2025-71148 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 3b3009ea8abb713b022d94fba95ec270cf6e7eae and fixed in 6.6.120 with commit cd8cf2be3717137554744233fda051ffc09d1d44 Issue introduced in 6.4 with commit 3b3009ea8abb713b022d94fba95ec270cf6e7eae and fixed in 6.12.64 with commit 7b82a1d6ae869533d8bdb0282a3a78faed8e63dd Issue introduced in 6.4 with commit 3b3009ea8abb713b022d94fba95ec270cf6e7eae and fixed in 6.18.3 with commit b225325be7b247c7268e65eea6090db1fc786d1f Issue introduced in 6.4 with commit 3b3009ea8abb713b022d94fba95ec270cf6e7eae and fixed in 6.19-rc2 with commit 6af2a01d65f89e73c1cbb9267f8880d83a88cee4 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-71148 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/cd8cf2be3717137554744233fda051ffc09d1d44 https://git.kernel.org/stable/c/7b82a1d6ae869533d8bdb0282a3a78faed8e63dd https://git.kernel.org/stable/c/b225325be7b247c7268e65eea6090db1fc786d1f https://git.kernel.org/stable/c/6af2a01d65f89e73c1cbb9267f8880d83a88cee4