7.8

CVE-2026-64401: smb: client: resolve SWN tcon from live registrations

Modified
AliasesUBUNTU-CVE-2026-64401DEBIAN-CVE-2026-64401
Published 25-07-2026Last modified 19-10-2026

Vulnerability summary

CVE-2026-64401 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.13% chance of exploitation in the next 30 days, higher than 2.3% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.13%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 44 · Related 40

Timeline

  1. 25-07-2026
    PublishedVulnerability first disclosed.
  2. 19-10-2026
    Last modifiedVulnerability information updated.

Description

In the Linux kernel, the following vulnerability has been resolved: smb: client: resolve SWN tcon from live registrations cifs_swn_notify() looks up a witness registration by id under cifs_swnreg_idr_mutex, drops the mutex, and then uses the registration's cached tcon pointer. That pointer is not a lifetime reference, and it is not a stable representative once cifs_get_swn_reg() lets multiple tcons for the same net/share name share one registration id. A same-share second mount can keep the cifs_swn_reg alive after the first tcon unregisters and is freed. The registration then still points at the freed first tcon, so taking tc_lock or incrementing tc_count through swnreg->tcon only moves the use-after-free earlier. Taking tc_lock while holding cifs_swnreg_idr_mutex also violates the documented CIFS lock order. Fix this by making the registration store only the stable witness identity: id, net name, share name, and notify flags. When a notify arrives, copy that identity under cifs_swnreg_idr_mutex, drop the mutex, then find and pin a live witness tcon that currently matches the net/share pair under the normal cifs_tcp_ses_lock -> tc_lock order. The notification path uses that pinned tcon directly and drops the reference when done. Registration and unregister messages now use the live tcon passed by the caller instead of a cached tcon in the registration. The final unregister send is folded into cifs_swn_unregister() while the registration is still protected by cifs_swnreg_idr_mutex. This removes the previous find/drop/reacquire raw-pointer window. The release path only removes the idr entry and frees the stable identity strings. This preserves the intended one-registration/many-tcon behavior: a registration id represents a net/share pair, and notify handling acts on a live representative selected at use time. It also preserves CLIENT_MOVE ordering for the representative tcon because the old-IP unregister is sent before cifs_swn_register() sends the new-IP register.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.13%

Chance of exploitation in the next 30 days

Percentile

2%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.13% on 21-10-2026

21-10-202620-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu157 products
  • linuxAll versions (No fix recorded) | < 5.15.0-198.208 | < 6.8.0-147.147 | < 7.0.0-31.31
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 5.15.0-1117.124 | < 6.8.0-1067.70 | < 7.0.0-1012.12
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Debian2 products
  • linux< 6.1.180-1 | < 6.12.100-1 | < 7.1.4-1
  • linux-6.12< 6.12.100-1~deb12u1
Linux2 products
  • linux≥ fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, < 51d18db392e5386a7bb9e816d611f14e600cca3c | ≥ fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, < aa3c0cab4b28c5007ec570c63e1d6ad6943ed0fd | ≥ fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, < 945b4a4a54497db1dcb2f20ef801a84e884dac21 | ≥ fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, < 91b8a58c6ac15c7db6518f696389933282f88da7 | ≥ fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, < 0700f946659d0ab2352ec8a9b1c6fc74b13a27d7 | ≥ fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, < ec457f9afe5ae9538bdcd58fd4cb442b9787e183 | 5.11
  • linux_kernel≥ 5.11, < 6.1.178 | ≥ 6.2, < 6.6.145 | ≥ 6.7, < 6.12.97 | ≥ 6.13, < 6.18.39 | ≥ 6.19, < 7.1.4

3 vendors · 161 products

References

37 links
Show all 37 references