CVE-2026-99386
published high CVSS 3.1 · 7.5smb: client: don't resurrect an exiting tcon from cached dir workers
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux73934e535cffbda1490fa97d82690a0f9aa73e94 to < 76c98dbe97f8a2c1465b4b21c9428333ba284d81 · 548812afd96982a76a93ba76c0582ea670c40d9e to < d1b779a4b5acf9a8692b7f002bf6d98e0597cc86 · 3fa640d035e5ae526769615c35cb9ed4be6e3662 to < b304a9268f7d54eb75ce62f75013c9a90eabf084 · 3fa640d035e5ae526769615c35cb9ed4be6e3662 to < ed62849db326dc166aa18496e40f27a44b2c7ad0 · 3fa640d035e5ae526769615c35cb9ed4be6e3662 to < d58e7b40908a8a57755811d5b37af1df3380278f · ff4528bbc82d0d90073751f7b49e7b9e9c7e5638 · 6.6.64 to < 6.6.163 · 6.12.2 to < 6.12.117 · 6.11.11 to < 6.12 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.13 (affected) · 0 to < 6.13 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; Pending Fix | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - cifs_demultiplex_thread() reads an SMB2 lease break (SMB2_OPLOCK_BREAK, StructureSize 44) and calls smb2_is_valid_oplock_break() -> smb2_is_valid_lease_break() -> cached_dir_lease_break(tcon, rsp->LeaseKey). Pre-fix that function did ++tcon->tc_count with no tc_lock. AC:H - That unlocked ++ races cfids_laundromat_worker's tc_lock ++ only while a different cfid is expiring. The server can send the LeaseKey but cannot arm the dir_cache_timeout laundromat or force the two plain int RMWs to interleave, and the first matching break clears has_lease. PR:N - Any writer on the connected SMB socket can send that break: cifs_demultiplex_thread() calls is_oplock_break with no client credential check, and smb2_verify_signature() returns 0 immediately for SMB2_OPLOCK_BREAK. UI:R - Two live cfids must already exist. smb3_qfs_tcon() caches the root at mount via open_cached_dir(), and a second directory is cached from cifs_readdir() or lookup. The victim has to mount the share and touch another directory before a break can race the laundromat. S:U - The object that gets freed is struct cifs_tcon in the client kernel that holds the mount. A use-after-free there is kernel memory corruption in the same security domain as the cifs superblock. C:H - If one ++ is lost, tc_count is one short, so the second cifs_put_tcon() in cached_dir_offload_close() hits zero and tconInfoFree() kfree()s the tcon under a still-mounted superblock. Reusing that kmalloc slot exposes the old tcon and whatever replaces it. I:H - close_cached_dir() runs smb2_close_cached_fid() -> SMB2_close() on cfid->tcon after that free, and tconInfoFree() kfree()s cfids while the other worker still locks cfid->cfids. Reclaiming the slab is a kernel write primitive. A:H - The premature tconInfoFree() path calls free_cached_dirs() and kfree(tcon) while cached_dir_offload_close() still dereferences cfid->tcon and cfid->cfids->cfid_list_lock, which oopses the client kernel.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 73934e535cffbda1490fa97d82690a0f9aa73e94 to < 76c98dbe97f8a2c1465b4b21c9428333ba284d81 (affected · git)548812afd96982a76a93ba76c0582ea670c40d9e to < d1b779a4b5acf9a8692b7f002bf6d98e0597cc86 (affected · git)3fa640d035e5ae526769615c35cb9ed4be6e3662 to < b304a9268f7d54eb75ce62f75013c9a90eabf084 (affected · git)3fa640d035e5ae526769615c35cb9ed4be6e3662 to < ed62849db326dc166aa18496e40f27a44b2c7ad0 (affected · git)3fa640d035e5ae526769615c35cb9ed4be6e3662 to < d58e7b40908a8a57755811d5b37af1df3380278f (affected · git)ff4528bbc82d0d90073751f7b49e7b9e9c7e5638 (affected · git)6.6.64 to < 6.6.163 (affected · semver)6.12.2 to < 6.12.117 (affected · semver)6.11.11 to < 6.12 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.13 (affected)0 to < 6.13 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/76c98dbe97f8a2c1465b4b21c9428333ba284d81
- https://git.kernel.org/stable/c/b304a9268f7d54eb75ce62f75013c9a90eabf084
- https://git.kernel.org/stable/c/d1b779a4b5acf9a8692b7f002bf6d98e0597cc86
- https://git.kernel.org/stable/c/d58e7b40908a8a57755811d5b37af1df3380278f
- https://git.kernel.org/stable/c/ed62849db326dc166aa18496e40f27a44b2c7ad0
Provider assertions
1Linux · cna
smb: client: don't resurrect an exiting tcon from cached dir workers
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c0759bac65b9afb192127e2c6274692a67061210e9d0cbe932e847a5cd7d7743
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record