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 95DFE2D9787 for ; Thu, 28 Aug 2025 09:40: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=1756374042; cv=none; b=YDXVL5Ql1DEyfjAZHycTubIN9U0brs5mufkCZqtoRP6z3LeN2ro4Wt13gasM7nIlO4WGlwedqFJm7fd4zz6wGz06PerN99LuhExnTcAfQHSlcNTscjOg9cEnvbTH5E0kCg/y4olVtp588sPtypwBgCSKTIa3wX1s0rd8iDK6e+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756374042; c=relaxed/simple; bh=nKFKAEIdYAqL8RqdgoJHaQ7U5RQsLbPfyBh0ig36FsY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FZCSpUGgqRioPnsKRY3oZ3g4ditYpYtZeGmFnSlO+35/L+wTw7yfvAOsm4W3o9UU5NYpSTG4ZwPWJgXe6q0oDUN/XYXSB+LH2fwvfIRkwfUvAO5F4TpJcpHqRrGEabiYlxR9Uwxp2bOdeyy2Bq1WJi5q7Ypd5AceCV1F3bfEBO8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=g8/H/P/p; 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="g8/H/P/p" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C04F0C4CEEB; Thu, 28 Aug 2025 09:40:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756374042; bh=nKFKAEIdYAqL8RqdgoJHaQ7U5RQsLbPfyBh0ig36FsY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=g8/H/P/paid0odmMwpe1eMtj2kkO88tdmUHTZmoy7CnaIr/3LKVKehd2PYt3poJ44 w9Y+/eFX4eet6gyPD7vpoeg7uIJgPRKUkC1CacPcCY8B+lMIsFvyaUWltlFYPgOGZH LRyIXOOzCage/yLBddnclWv95fAsouWuEmpHwVQ8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58240: tls: separate no-async decryption request handling from async Date: Thu, 28 Aug 2025 11:40:37 +0200 Message-ID: <2025082836-CVE-2024-58240-b2b3@gregkh> X-Mailer: git-send-email 2.50.1 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=2141; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sW/L2cxN4Pi18wH7GgMlucf+WlqAQqTZ6BzR0epeDHQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkbVEQ4JZ5X31vf/lltwtKfoc1HTqQ/nlc1c//01dXvS 9VWtTF97YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICbHM4wT30NR0G6ZHLPBQeR huwWs7B5KQ1MDPOjmoOYc/gy1fL3uG84seroBpWT++IB 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: separate no-async decryption request handling from async If we're not doing async, the handling is much simpler. There's no reference counting, we just need to wait for the completion to wake us up and return its result. We should preferably also use a separate crypto_wait. I'm not seeing a UAF as I did in the past, I think aec7961916f3 ("tls: fix race between async notify and socket close") took care of it. This will make the next fix easier. The Linux kernel CVE team has assigned CVE-2024-58240 to this issue. Affected and fixed versions =========================== Fixed in 6.6.21 with commit dec5b6e7b211e405d3bcb504562ab21aa7e5a64d Fixed in 6.7.9 with commit 999115298017a675d8ddf61414fc7a85c89f1186 Fixed in 6.8 with commit 41532b785e9d79636b3815a64ddf6a096647d011 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-2024-58240 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/dec5b6e7b211e405d3bcb504562ab21aa7e5a64d https://git.kernel.org/stable/c/999115298017a675d8ddf61414fc7a85c89f1186 https://git.kernel.org/stable/c/41532b785e9d79636b3815a64ddf6a096647d011