CVE-2026-64401·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.1.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.17% — higher than 6% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-64401 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.17%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 7.1.4
Fixed in: 7.1.4
How to fix this CVE
Update your Linux kernel to version 7.1.4 or later to resolve a use-after-free vulnerability in the SMB client's Service Witness Network (SWN) handler. This flaw could allow local attackers with low privileges to cause denial of service or potentially execute code by triggering improper memory access during multi-share CIFS mount scenarios. Apply the kernel update immediately through your distribution's package manager.
sudo dnf check-update kernel && sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with: uname -r
- Step 2: Verify you are running a vulnerable version between 6.19 and 7.1.3 (inclusive)
- Step 3: Check if SMB/CIFS client is in use by running: grep -i cifs /proc/filesystems and mount | grep cifs
- Step 4: Search dmesg and syslog for UAF-related messages: sudo journalctl -k | grep -i 'use-after-free\|double free\|bad-free\|refcount'
- Step 5: After patching, reboot with: sudo reboot and verify new kernel version with uname -r
FAQ
What is CVE-2026-64401?
This CVE addresses a use-after-free vulnerability in the Linux kernel's SMB client Service Witness Network (SWN) registration handler. The flaw occurs when multiple CIFS mounts share the same network/share pair, causing the kernel to reference freed memory when handling witness notifications.
Is CVE-2026-64401 being actively exploited?
No, this vulnerability is not currently being actively exploited in the wild according to CISA data, and no public exploit code is available.
What versions of Kernel are affected by CVE-2026-64401?
Linux kernel versions 6.19 through 7.1.3 are vulnerable. The fix is available in kernel 7.1.4 and later.
How do I check if my server is vulnerable to CVE-2026-64401?
Run 'uname -r' to see your kernel version. If it is between 6.19 and 7.1.3 inclusive, you are vulnerable. Additionally, check 'mount | grep cifs' to confirm SMB/CIFS client usage.
Does Defensia detect CVE-2026-64401?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-64401 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0700f946659d0ab2352ec8a9b1c6fc74b13a27d7
- https://git.kernel.org/stable/c/51d18db392e5386a7bb9e816d611f14e600cca3c
- https://git.kernel.org/stable/c/91b8a58c6ac15c7db6518f696389933282f88da7
- https://git.kernel.org/stable/c/945b4a4a54497db1dcb2f20ef801a84e884dac21
- https://git.kernel.org/stable/c/aa3c0cab4b28c5007ec570c63e1d6ad6943ed0fd
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-64401. Free for 1 server.
Get started free