VDB

CVE-2026-64401

CVE-2026-64401 PUBLISHED CVSS 7.8 HIGH

smb: client: resolve SWN tcon from live registrations

Reported by linux · Published July 25, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-livepatch-6.18.39-79.141Amazon Linux1:1.0-0.amzn2023
kernel6.18-headersAmazon Linux1:6.18.39-79.141.amzn2023
kernel6.18-toolsAmazon Linux1:6.18.39-79.141.amzn2023

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxfed979a7e082bd9f25f9002c3c4f8740dacd0bc8, fed979a7e082bd9f25f9002c3c4f8740dacd0bc8, fed979a7e082bd9f25f9002c3c4f8740dacd0bc8
LinuxLinux5.11, 0, 6.1.178
amazon:2023kernel-livepatch-6.18.39-79.1410
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-tools0
linuxlinux_kernel5.11, 5.11, 5.11
amazon:2023perf6.180
amazon:2023kernel6.18-modules-extra-common0
amazon:2023python3-perf6.180
amazon:2023bpftool6.180
LinuxLinux7.2, 6.1.178, 6.6.145
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-modules-extra0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.180

Timeline

  • Jul 25, 2026 EPSS Score (9 in total, the first dated here)
  • Jul 25, 2026 CVE Published
  • Jul 26, 2026 Security Advisory (20 in total, the first dated here)
  • Aug 9, 2026 CVE Updated
  • Aug 12, 2026 Distribution Patch (21 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-64401
vulnetix vdb fixes CVE-2026-64401

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64401/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›