# CVE-2026-23240: tls: Fix race condition in tls\_sw\_cancel\_work\_tx()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.59% (percentile 42, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-03-10T17:28:27.371Z
- **Modified:** 2026-10-19T19:17:43.143Z

## Who should check

- Anyone running Linux \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< a5de36d6cee74a92c1a21b260bc507e64bc451de; \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< 854cd32bc74fe573353095e90958490e4e4d641b; \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< 17153f154f80be2b47ebf52840f2d8f724eb2f3b; \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< 7bb09315f93dce6acc54bf59e5a95ba7365c2be4
- Anyone running Linux 5.3

## 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().

## Affected and fixed versions

- Linux: \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< a5de36d6cee74a92c1a21b260bc507e64bc451de; \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< 854cd32bc74fe573353095e90958490e4e4d641b; \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< 17153f154f80be2b47ebf52840f2d8f724eb2f3b; \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< 7bb09315f93dce6acc54bf59e5a95ba7365c2be4 (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- Upgrade Linux to 7bb09315f93dce6acc54bf59e5a95ba7365c2be4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23240. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23240.md
Affected: Linux >= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, < a5de36d6cee74a92c1a21b260bc507e64bc451de; >= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, < 854cd32bc74fe573353095e90958490e4e4d641b; >= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, < 17153f154f80be2b47ebf52840f2d8f724eb2f3b; >= f87e62d45e51b12d48d2cb4…
Fixed in: Linux 854cd32bc74fe573353095e90958490e4e4d641b, Linux 17153f154f80be2b47ebf52840f2d8f724eb2f3b, Linux 7bb09315f93dce6acc54bf59e5a95ba7365c2be4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23240 being exploited?

There is no confirmed exploitation: CVE-2026-23240 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.59% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23240?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-23240?

Linux \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< a5de36d6cee74a92c1a21b260bc507e64bc451de; \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< 854cd32bc74fe573353095e90958490e4e4d641b; \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< 17153f154f80be2b47ebf52840f2d8f724eb2f3b; \>= f87e62d45e51b12d48d2cb46b5cde8f83b866bc4, \< 7bb09315f93dce6acc54bf59e5a95ba7365c2be4; Linux 5.3.

### Is there a fix for CVE-2026-23240?

Yes. Fixed in Linux 854cd32bc74fe573353095e90958490e4e4d641b, Linux 17153f154f80be2b47ebf52840f2d8f724eb2f3b, Linux 7bb09315f93dce6acc54bf59e5a95ba7365c2be4. Upgrade Linux to 7bb09315f93dce6acc54bf59e5a95ba7365c2be4 or later.

### How do I check if I'm affected by CVE-2026-23240?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a5de36d6cee74a92c1a21b260bc507e64bc451de>
- patch: <https://git.kernel.org/stable/c/854cd32bc74fe573353095e90958490e4e4d641b>
- patch: <https://git.kernel.org/stable/c/17153f154f80be2b47ebf52840f2d8f724eb2f3b>
- patch: <https://git.kernel.org/stable/c/7bb09315f93dce6acc54bf59e5a95ba7365c2be4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23240>

HTML: <https://flawdb.com/CVE-2026-23240> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23240>
