# CVE-2026-99386: smb: client: don't resurrect an exiting tcon from cached dir workers

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: Required; 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.46% (percentile 32, 2026-11-28)
- **Published:** 2026-11-19T14:23:26.032Z
- **Modified:** 2026-11-23T08:17:43.217Z

## Who should check

- Anyone running Linux \>= 73934e535cffbda1490fa97d82690a0f9aa73e94, \< 76c98dbe97f8a2c1465b4b21c9428333ba284d81; \>= 548812afd96982a76a93ba76c0582ea670c40d9e, \< d1b779a4b5acf9a8692b7f002bf6d98e0597cc86; \>= 3fa640d035e5ae526769615c35cb9ed4be6e3662, \< b304a9268f7d54eb75ce62f75013c9a90eabf084; \>= 3fa640d035e5ae526769615c35cb9ed4be6e3662, \< ed62849db326dc166aa18496e40f27a44b2c7ad0; \>= 3fa640d035e5ae526769615c35cb9ed4be6e3662, \< d58e7b40908a8a57755811d5b37af1df3380278f; ff4528bbc82d0d90073751f7b49e7b9e9c7e5638; \>= 6.6.64, \< 6.6.163; \>= 6.12.2, \< 6.12.117; \>= 6.11.11, \< 6.12
- Anyone running Linux 6.13

## Description

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

smb: client: don't resurrect an exiting tcon from cached dir workers

cfids\_laundromat\_worker() bumps tcon-\>tc\_count for every expired open
cfid and queues cached\_dir\_offload\_close() without checking whether the
tcon is already being torn down.  Racing with the final cifs\_put\_tcon(),
the tcon comes back from zero and gets torn down twice:

  T1                                  T2
  cifs\_put\_tcon()
   --tc\_count == 0, TID\_EXITING
   tconInfoFree()
    free\_cached\_dirs()
     cancel\_delayed\_work\_sync()       cfids\_laundromat\_worker()
                                       ++tc\_count == 1
                                       queue\_work(serverclose\_wq)
    kfree(tcon-\>origin\_fullpath)
    kfree(tcon)
                                      cached\_dir\_offload\_close()
                                       close\_cached\_dir()  \[UAF\]
                                       cifs\_put\_tcon()
                                        tconInfoFree()     \[double free\]

cached\_dir\_lease\_break() also bumps tc\_count without tc\_lock, racing with
the laundromat's locked update.

Take the tcon reference through a helper that refuses once the tcon is
TID\_EXITING or its refcount has dropped to zero.  Queued put\_work and
close\_work then always hold a tcon reference, so tconInfoFree() can't
run before they finish and free\_cached\_dirs() doesn't need to flush any
workqueue.  If the laundromat can't get a reference, put the cfid back on
the dying list for free\_cached\_dirs() to free; its handle goes away with
the tree connection.

The lease break path finds the tcon on ses-\>tcon\_list under
cifs\_tcp\_ses\_lock, so it can't see TID\_EXITING, but it now takes tc\_lock.

## Affected and fixed versions

- Linux: \>= 73934e535cffbda1490fa97d82690a0f9aa73e94, \< 76c98dbe97f8a2c1465b4b21c9428333ba284d81; \>= 548812afd96982a76a93ba76c0582ea670c40d9e, \< d1b779a4b5acf9a8692b7f002bf6d98e0597cc86; \>= 3fa640d035e5ae526769615c35cb9ed4be6e3662, \< b304a9268f7d54eb75ce62f75013c9a90eabf084; \>= 3fa640d035e5ae526769615c35cb9ed4be6e3662, \< ed62849db326dc166aa18496e40f27a44b2c7ad0; \>= 3fa640d035e5ae526769615c35cb9ed4be6e3662, \< d58e7b40908a8a57755811d5b37af1df3380278f; ff4528bbc82d0d90073751f7b49e7b9e9c7e5638; \>= 6.6.64, \< 6.6.163; \>= 6.12.2, \< 6.12.117; \>= 6.11.11, \< 6.12 (cvelist)
- Linux: 6.13 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 6.12 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-99386. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99386.md
Affected: Linux >= 73934e535cffbda1490fa97d82690a0f9aa73e94, < 76c98dbe97f8a2c1465b4b21c9428333ba284d81; >= 548812afd96982a76a93ba76c0582ea670c40d9e, < d1b779a4b5acf9a8692b7f002bf6d98e0597cc86; >= 3fa640d035e5ae526769615c35cb9ed4be6e3662, < b304a9268f7d54eb75ce62f75013c9a90eabf084; >= 3fa640d035e5ae526769615…
Fixed in: Linux 76c98dbe97f8a2c1465b4b21c9428333ba284d81, Linux 6.6.163, Linux 6.12.117, Linux 6.12

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-99386 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 73934e535cffbda1490fa97d82690a0f9aa73e94, \< 76c98dbe97f8a2c1465b4b21c9428333ba284d81; \>= 548812afd96982a76a93ba76c0582ea670c40d9e, \< d1b779a4b5acf9a8692b7f002bf6d98e0597cc86; \>= 3fa640d035e5ae526769615c35cb9ed4be6e3662, \< b304a9268f7d54eb75ce62f75013c9a90eabf084; \>= 3fa640d035e5ae526769615c35cb9ed4be6e3662, \< ed62849db326dc166aa18496e40f27a44b2c7ad0; \>= 3fa640d035e5ae526769615c35cb9ed4be6e3662, \< d58e7b40908a8a57755811d5b37af1df3380278f; ff4528bbc82d0d90073751f7b49e7b9e9c7e5638; \>= 6.6.64, \< 6.6.163; \>= 6.12.2, \< 6.12.117; \>= 6.11.11, \< 6.12; Linux 6.13.

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

Yes. Fixed in Linux 76c98dbe97f8a2c1465b4b21c9428333ba284d81, Linux 6.6.163, Linux 6.12.117, Linux 6.12. Upgrade Linux to 6.12 or later.

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

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

- other: <https://git.kernel.org/stable/c/76c98dbe97f8a2c1465b4b21c9428333ba284d81>
- other: <https://git.kernel.org/stable/c/d1b779a4b5acf9a8692b7f002bf6d98e0597cc86>
- other: <https://git.kernel.org/stable/c/b304a9268f7d54eb75ce62f75013c9a90eabf084>
- other: <https://git.kernel.org/stable/c/ed62849db326dc166aa18496e40f27a44b2c7ad0>
- other: <https://git.kernel.org/stable/c/d58e7b40908a8a57755811d5b37af1df3380278f>

## 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-99386>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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