CVE-2026-23240

Source
https://cve.org/CVERecord?id=CVE-2026-23240
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23240.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-23240
Downstream
Related
Published
2026-03-10T17:28:27.371Z
Modified
2026-04-02T13:12:17.037885Z
Summary
tls: Fix race condition in tls_sw_cancel_work_tx()
Details

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->tx_work.work, 0);

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23240.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f87e62d45e51b12d48d2cb46b5cde8f83b866bc4
Fixed
a5de36d6cee74a92c1a21b260bc507e64bc451de
Fixed
854cd32bc74fe573353095e90958490e4e4d641b
Fixed
17153f154f80be2b47ebf52840f2d8f724eb2f3b
Fixed
7bb09315f93dce6acc54bf59e5a95ba7365c2be4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23240.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.3.0
Fixed
6.12.75
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.16
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23240.json"