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

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-07-25T08:50:44.361Z
- **Modified:** 2026-10-19T21:17:35.580Z

## Who should check

- Anyone running Linux \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 51d18db392e5386a7bb9e816d611f14e600cca3c; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< aa3c0cab4b28c5007ec570c63e1d6ad6943ed0fd; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 945b4a4a54497db1dcb2f20ef801a84e884dac21; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 91b8a58c6ac15c7db6518f696389933282f88da7; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 0700f946659d0ab2352ec8a9b1c6fc74b13a27d7; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< ec457f9afe5ae9538bdcd58fd4cb442b9787e183
- Anyone running Linux 5.11

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

## Affected and fixed versions

- Linux: \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 51d18db392e5386a7bb9e816d611f14e600cca3c; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< aa3c0cab4b28c5007ec570c63e1d6ad6943ed0fd; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 945b4a4a54497db1dcb2f20ef801a84e884dac21; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 91b8a58c6ac15c7db6518f696389933282f88da7; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 0700f946659d0ab2352ec8a9b1c6fc74b13a27d7; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< ec457f9afe5ae9538bdcd58fd4cb442b9787e183 (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-64401.md
Affected: Linux >= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, < 51d18db392e5386a7bb9e816d611f14e600cca3c; >= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, < aa3c0cab4b28c5007ec570c63e1d6ad6943ed0fd; >= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, < 945b4a4a54497db1dcb2f20ef801a84e884dac21; >= fed979a7e082bd9f25f9002…
Fixed in: Linux 51d18db392e5386a7bb9e816d611f14e600cca3c, Linux 945b4a4a54497db1dcb2f20ef801a84e884dac21, Linux 91b8a58c6ac15c7db6518f696389933282f88da7, Linux 0700f946659d0ab2352ec8a9b1c6fc74b13a27d7

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 51d18db392e5386a7bb9e816d611f14e600cca3c; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< aa3c0cab4b28c5007ec570c63e1d6ad6943ed0fd; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 945b4a4a54497db1dcb2f20ef801a84e884dac21; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 91b8a58c6ac15c7db6518f696389933282f88da7; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< 0700f946659d0ab2352ec8a9b1c6fc74b13a27d7; \>= fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, \< ec457f9afe5ae9538bdcd58fd4cb442b9787e183; Linux 5.11.

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

Yes. Fixed in Linux 51d18db392e5386a7bb9e816d611f14e600cca3c, Linux 945b4a4a54497db1dcb2f20ef801a84e884dac21, Linux 91b8a58c6ac15c7db6518f696389933282f88da7, Linux 0700f946659d0ab2352ec8a9b1c6fc74b13a27d7. No fix listed yet: follow the vendor advisory.

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

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/51d18db392e5386a7bb9e816d611f14e600cca3c>
- patch: <https://git.kernel.org/stable/c/aa3c0cab4b28c5007ec570c63e1d6ad6943ed0fd>
- patch: <https://git.kernel.org/stable/c/945b4a4a54497db1dcb2f20ef801a84e884dac21>
- patch: <https://git.kernel.org/stable/c/91b8a58c6ac15c7db6518f696389933282f88da7>
- patch: <https://git.kernel.org/stable/c/0700f946659d0ab2352ec8a9b1c6fc74b13a27d7>
- patch: <https://git.kernel.org/stable/c/ec457f9afe5ae9538bdcd58fd4cb442b9787e183>

## 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-64401>

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