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 8AE3340DFD6 for ; Tue, 10 Mar 2026 17:28:39 +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=1773163719; cv=none; b=KNLikfBuECCxfVLuTab1DJNrugWaVn9fUNaY6doOEtLOH5orO7MGFBQ2dSR/tvU3kz4QzHGs6yHt/arGmDemyAZJY9dMF8Oq2Cuv57RPAHuy/j5qDu1iwEImBf07I68yJYL4TNLCeFI2zyNdslKDrab8m9hhxT57JZ7pX9Fs9nk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773163719; c=relaxed/simple; bh=j1sP2UTVFIZkAHwqWBJ2aWB8EKKeb8xEz3qWMyFNS90=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HdWpUEIBBFu4P6wGlK48N5mtL9fYBtN00tqHzLUDscSy/NdkJNUv2cb5XjfD1X8kyzZeFM+Jv4WMU0eFhlAeUVYv9FgpB5xJEpZSujzD1s2MDQf7QuhpT4014NVGUyCTltrp9MFB8ZFfbHxe76FpOlHH7tUOY74M4UzAK7fl9I4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R4H661Xk; 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="R4H661Xk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69580C19423; Tue, 10 Mar 2026 17:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773163719; bh=j1sP2UTVFIZkAHwqWBJ2aWB8EKKeb8xEz3qWMyFNS90=; h=From:To:Cc:Subject:Date:Reply-To:From; b=R4H661XkkCDHjXfXZWGOWKqUm+cNNRslO3LtqyZ7MF3+Jt4ffpvw82XejWOgKOn2k di+rvjG9DfVLHrd7vZhB5oCtWbD4WZ1ypIlxIWxZHwlrmSUodWLigciCWvgk8QYgLW tFPvF0GFWRlRsURNSI/qaQV079qw7mcaoZu7bA24= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23240: tls: Fix race condition in tls_sw_cancel_work_tx() Date: Tue, 10 Mar 2026 18:28:33 +0100 Message-ID: <2026031034-CVE-2026-23240-2531@gregkh> X-Mailer: git-send-email 2.53.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=3154; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7oZihJbAZeIdorCZ0udlcCt8ZuI7Y3bfk6LqJfO2J0Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkbQg6Z7z9+2nJZtgCjENNT6UCxF7ME7rlFxvcLONnN2 386/HVCRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk5CvDPIM61mOtHAqvUuaq SU3f47vV/MyOaQwLroT+EA/ZGKI60TN5x7VZKnetXjW9AwA= 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: Fix race condition in tls_sw_cancel_work_tx() This issue was discovered during a code audit. After cancel_delayed_work_sync() is called from tls_sk_proto_close(), tx_work_handler() can still be scheduled from paths such as the Delayed ACK handler or ksoftirqd. As a result, the tx_work_handler() worker may dereference a freed TLS object. The following is a simple race scenario: cpu0 cpu1 tls_sk_proto_close() tls_sw_cancel_work_tx() tls_write_space() tls_sw_write_space() if (!test_and_set_bit(BIT_TX_SCHEDULED, &tx_ctx->tx_bitmask)) set_bit(BIT_TX_SCHEDULED, &ctx->tx_bitmask); cancel_delayed_work_sync(&ctx->tx_work.work); schedule_delayed_work(&tx_ctx->tx_work.work, 0); To prevent this race condition, cancel_delayed_work_sync() is replaced with disable_delayed_work_sync(). The Linux kernel CVE team has assigned CVE-2026-23240 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit f87e62d45e51b12d48d2cb46b5cde8f83b866bc4 and fixed in 6.12.75 with commit a5de36d6cee74a92c1a21b260bc507e64bc451de Issue introduced in 5.3 with commit f87e62d45e51b12d48d2cb46b5cde8f83b866bc4 and fixed in 6.18.16 with commit 854cd32bc74fe573353095e90958490e4e4d641b Issue introduced in 5.3 with commit f87e62d45e51b12d48d2cb46b5cde8f83b866bc4 and fixed in 6.19.6 with commit 17153f154f80be2b47ebf52840f2d8f724eb2f3b Issue introduced in 5.3 with commit f87e62d45e51b12d48d2cb46b5cde8f83b866bc4 and fixed in 7.0-rc2 with commit 7bb09315f93dce6acc54bf59e5a95ba7365c2be4 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-2026-23240 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/a5de36d6cee74a92c1a21b260bc507e64bc451de https://git.kernel.org/stable/c/854cd32bc74fe573353095e90958490e4e4d641b https://git.kernel.org/stable/c/17153f154f80be2b47ebf52840f2d8f724eb2f3b https://git.kernel.org/stable/c/7bb09315f93dce6acc54bf59e5a95ba7365c2be4