CVE-2026-23240: tls: Fix race condition in tls_sw_cancel_work_tx()

Published Mar 10, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

tls: Fix race condition in tlsswcancelworktx()

This issue was discovered during a code audit.

After canceldelayedworksync() is called from tlsskprotoclose(), txworkhandler() can still be scheduled from paths such as the Delayed ACK handler or ksoftirqd. As a result, the txworkhandler() worker may dereference a freed TLS object.

The following is a simple race scenario:

cpu0 cpu1

tlsskprotoclose() tlsswcancelworktx() tlswritespace() tlsswwritespace() if (!testandsetbit(BITTXSCHEDULED, &txctx->txbitmask)) setbit(BITTXSCHEDULED, &ctx->txbitmask); canceldelayedworksync(&ctx->txwork.work); scheduledelayedwork(&txctx->txwork.work, 0);

To prevent this race condition, canceldelayedworksync() is replaced with disabledelayedworksync().

Affected Software

11 affected components
Linux Linux kernel
Linux Linux kernel>=5.3.1<6.12.75
Linux Linux kernel>=6.13<6.18.16
Linux Linux kernel>=6.19<6.19.6
Linux Linux kernel=5.3
Linux Linux kernel=5.3-rc4
Linux Linux kernel=5.3-rc5
Linux Linux kernel=5.3-rc6
Linux Linux kernel=5.3-rc7
Linux Linux kernel=5.3-rc8
Linux Linux kernel=7.0-rc1

Event History

Mar 10, 2026
CVE Published
via MITRE·05:28 PM
Data Sourced
via MITRE·05:28 PM
DescriptionSeverity
Data Sourced
via NVD·06:18 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-23240?

CVE-2026-23240 has been classified as a moderate severity vulnerability.

2

How do I fix CVE-2026-23240?

To fix CVE-2026-23240, you should update to the latest patched version of the Linux kernel.

3

What are the consequences of not addressing CVE-2026-23240?

Failure to address CVE-2026-23240 may lead to potential denial of service conditions due to the race condition.

4

Which versions of the Linux kernel are affected by CVE-2026-23240?

CVE-2026-23240 affects multiple versions of the Linux kernel that include the vulnerable code.

5

How was CVE-2026-23240 discovered?

CVE-2026-23240 was discovered during a routine code audit of the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203