CVE-2026-23240
tls: Fix race condition in tls_sw_cancel_work_tx()
Reported by linux · Published March 10, 2026
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().
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.18-modules-extra-common | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel6.18-libbpf-static | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel-livepatch-6.12.77-99.140 | Amazon Linux | 1:1.0-0.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| python3-perf6.18 | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel6.18-libbpf-devel | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| linux_kernel | linux | 6.19.6, 6.18.16, 6.12.75 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, f87e62d45e51b12d48d2cb46b5cde8f83b866bc4 |
| Linux | Linux | 5.3, 0, 6.12.75 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18-libbpf-static | 0 |
| amazon:2023 | kernel-livepatch-6.12.77-99.140 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.18-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| linux | linux_kernel | 5.3, 5.3, 5.3 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel6.18-libbpf | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.18 | 0 |
…and 12 more
Timeline
- Mar 10, 2026 CVE Published
- Mar 11, 2026 EPSS Score (30 in total, the first dated here)
- Mar 22, 2026 Coalition ESS Score (3 in total, the first dated here)
- Apr 2, 2026 Security Advisory (4 in total, the first dated here)
- Oct 19, 2026 CVE Updated
- Nov 10, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-23240
vulnetix vdb fixes CVE-2026-23240
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-23240/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart