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 0D8C4305E09 for ; Wed, 12 Nov 2025 10:54:08 +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=1762944850; cv=none; b=WaOF8RSOHQQUSuWa5mZLx+bNCX4y82iDLTazKmvcjYe0XpkTTtVQ1UUn8UhJZ4sbjPgQL3CS6CQNTrOf7guxkOsBTi9Dn7HnZY4Rf2TB4RVzEBknCEJNkt1J+pi6a3S5K6ADVIz92ezxcaMYp9MEGkRXc0Y0mlenN8Cxrnf6LrY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762944850; c=relaxed/simple; bh=P8QEy/VMgNGU/Fc6Ht0XvHSyzmASQ7lKKGtyc27eJF4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XpcKO9Nd+sxbu/B+Y1NID8iinrBendUp12nM6br0yyEwJeq0k2RWlV8QE/+bSrLEsEdNDQ8tHFxfSM+bCwSf2aF0kuBV4qqi+TZmnObqwCQ7BHmsW2oZ2nC7Wjal8o+NjrRA/RKE17UYHuGuo8LdIqFFUDSxyRE6xeYZRA7DOBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PIrMKKTk; 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="PIrMKKTk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46F7CC16AAE; Wed, 12 Nov 2025 10:54:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762944848; bh=P8QEy/VMgNGU/Fc6Ht0XvHSyzmASQ7lKKGtyc27eJF4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PIrMKKTktdex7n5yoT/0FeZfp6U+2r/VU3cQtYHXyX2UgMPm2sTU1T5dWGS22e3PB RF7u5JsmSO3YKJRP4+saA9al5UlptoacPAeHzkDSomsXnGbRPpbpQoYGbU9njLM7oI GkJH/QNRIpOh86xhpzr4nORb6LYYWr5l65kQUJ14= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40176: tls: wait for pending async decryptions if tls_strp_msg_hold fails Date: Wed, 12 Nov 2025 05:53:59 -0500 Message-ID: <2025111255-CVE-2025-40176-f2e3@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=2811; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Xif81tkjihGUp2A+iaopiANGg7P7srvCfshXboKlvAY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJki6c7zmo52rQ+ayOC7ZO0/m3Tnhaoz0yXL5Uv2hwsWT c0/YuvfEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPZ9oVhflVF/0GFx843TJTe XbsqrP0kMKivgGHB9SUrLzd/aG4yuSE+O1hoT0KRKMNnAA== 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: tls: wait for pending async decryptions if tls_strp_msg_hold fails Async decryption calls tls_strp_msg_hold to create a clone of the input skb to hold references to the memory it uses. If we fail to allocate that clone, proceeding with async decryption can lead to various issues (UAF on the skb, writing into userspace memory after the recv() call has returned). In this case, wait for all pending decryption requests. The Linux kernel CVE team has assigned CVE-2025-40176 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 84c61fe1a75b4255df1e1e7c054c9e6d048da417 and fixed in 6.1.158 with commit 9f83fd0c179e0f458e824e417f9d5ad53443f685 Issue introduced in 6.0 with commit 84c61fe1a75b4255df1e1e7c054c9e6d048da417 and fixed in 6.6.114 with commit c61d4368197d65c4809d9271f3b85325a600586a Issue introduced in 6.0 with commit 84c61fe1a75b4255df1e1e7c054c9e6d048da417 and fixed in 6.12.55 with commit 39dec4ea3daf77f684308576baf483b55ca7f160 Issue introduced in 6.0 with commit 84c61fe1a75b4255df1e1e7c054c9e6d048da417 and fixed in 6.17.5 with commit 4fc109d0ab196bd943b7451276690fb6bb48c2e0 Issue introduced in 6.0 with commit 84c61fe1a75b4255df1e1e7c054c9e6d048da417 and fixed in 6.18-rc2 with commit b8a6ff84abbcbbc445463de58704686011edc8e1 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-40176 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/tls/tls_sw.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/9f83fd0c179e0f458e824e417f9d5ad53443f685 https://git.kernel.org/stable/c/c61d4368197d65c4809d9271f3b85325a600586a https://git.kernel.org/stable/c/39dec4ea3daf77f684308576baf483b55ca7f160 https://git.kernel.org/stable/c/4fc109d0ab196bd943b7451276690fb6bb48c2e0 https://git.kernel.org/stable/c/b8a6ff84abbcbbc445463de58704686011edc8e1