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 2B1E538398 for ; Wed, 21 Feb 2024 15:00:02 +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=1708527603; cv=none; b=B5GD5Pbym3fMFvcv7RF01S3vZpW7QxLV9KZJBf9W4VXso5srNC3uvjwllFXUIkc253a40gVO5gMkGzHstyHpa9tLIkuOVhvJPvHxgaMtuXjFaB4sgTt3NrFOtXnclJdOkClcrR/GnvzDrOgscVtPBq7qtzB2Y2GUygSOanh/6gE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708527603; c=relaxed/simple; bh=TAUXNraMUi429MZr9gQv1UrB/aXi4XQRAKzxAGnwcA8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TkRDC7at3G+N0HZu3LcmrJ6eW/zkgwnG4X+uZKtyJNhRUrozgcFlIaPvLYsMf/plejbWaWu1JtpFNTgTI6waCWhrqieouMhNGaRNyBN7ypnnviay1nCvVD5H0J9zvZ5b8NeYHta01B0hJ0YFCOK09HubTBebzIOBjl3GQ0QggGk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MUJ2/Udm; 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="MUJ2/Udm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C980C433C7; Wed, 21 Feb 2024 15:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708527602; bh=TAUXNraMUi429MZr9gQv1UrB/aXi4XQRAKzxAGnwcA8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MUJ2/UdmxWOyN5qMrkVGDBiCM/zYjnz0O1Cl6QC151fIgl0GckJxt7IYnNU06LhX7 E1bJrLchJ6bHwihPxGdXT0IT59nr7HLlI8eIOJCPD3Ys6QXWUkI5t196Rn/SEdu08V M6EEcFaWgzpdvq2Ht/B7MMY2UFJIzrXADDoBFRYo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26585: tls: fix race between tx work scheduling and socket close Date: Wed, 21 Feb 2024 15:59:50 +0100 Message-ID: <2024022150-fancy-numerate-94ab@gregkh> X-Mailer: git-send-email 2.43.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=1775; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TAUXNraMUi429MZr9gQv1UrB/aXi4XQRAKzxAGnwcA8=; b=owGbwMvMwCRo6H6F97bub03G02pJDKnX+J8xp4fefFxxeHfBFsMrRVYOSs4zamo3Vi2zqDs4u U0j3D6sI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbynpNhwYHpU2Qn8+9kEEt9 +O3Fm9v6/z6efc4wm/WBXHB4ifZcP+6FC4u2sZutWOT6AwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: tls: fix race between tx work scheduling and socket close Similarly to previous commit, the submitting thread (recvmsg/sendmsg) may exit as soon as the async crypto handler calls complete(). Reorder scheduling the work before calling complete(). This seems more logical in the first place, as it's the inverse order of what the submitting thread will do. The Linux kernel CVE team has assigned CVE-2024-26585 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit a42055e8d2c3 and fixed in 6.8-rc5 with commit e01e3934a1b2 Please see https://www.kernel.org or 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-26585 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/e01e3934a1b2d122919f73bc6ddbe1cdafc4bbdb