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 Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade perf6.18-debuginfoUpgrade bpftool6.18-debuginfoUpgrade kernel6.18-headersUpgrade kernel6.18-debuginfoUpgrade kernel6.18-debuginfo-common-aarch64Upgrade kernel6.18-modules-extraUpgrade kernel6.18-toolsUpgrade kernel-livepatch-6.18.39-79.141Upgrade python3-perf6.18Upgrade perf6.18Upgrade bpftool6.18Upgrade kernel6.18-modules-extra-commonUpgrade kernel6.18-tools-develUpgrade kernel6.18-develUpgrade kernel6.18-tools-debuginfoUpgrade python3-perf6.18-debuginfoUpgrade kernel6.18-debuginfo-common-x86_64Upgrade kernel6.18Upgrade microvm-kernel6.18 | Aug 18, 2026 | Jul 25, 2026 |
| Debian | — | Upgrade linux-6.12Upgrade linux-6.1Upgrade linux | Aug 2, 2026 | Aug 2, 2026 |
| Ubuntu | — | Upgrade linux-image-realtime-7.0Upgrade linux-image-nvidia-bos-7.0Upgrade linux-image-7.0.0-1013-oemUpgrade linux-image-realtime-hwe-26.04Upgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-gke-7.0Upgrade linux-image-gkeUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-nvidiaUpgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-generic-64kUpgrade linux-image-nvidia-bosUpgrade linux-image-7.0.0-31-realtime-64kUpgrade linux-image-ibm-7.0Upgrade linux-image-aws-64kUpgrade linux-image-nvidia-64k-7.0Upgrade linux-image-virtual-hwe-26.04Upgrade linux-image-7.0.0-1019-raspiUpgrade linux-image-oem-26.04bUpgrade linux-image-aws-7.0Upgrade linux-image-genericUpgrade linux-image-generic-64k-7.0Upgrade linux-image-ibmUpgrade linux-image-7.0.0-1018-nvidia-64kUpgrade linux-image-7.0.0-31-generic-64kUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-7.0.0-31-realtimeUpgrade linux-image-7.0.0-1006-gkeUpgrade linux-image-gcp-7.0Upgrade linux-image-aws-64k-7.0Upgrade linux-image-oem-26.04Upgrade linux-image-7.0.0-2018-nvidia-bosUpgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-7.0.0-1013-ibmUpgrade linux-image-7.0.0-1019-raspi-realtimeUpgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-nvidia-bos-64kUpgrade linux-image-gcp-64kUpgrade linux-image-raspi-realtimeUpgrade linux-image-virtual-7.0Upgrade linux-image-realtime-64k-7.0Upgrade linux-image-oem-7.0Upgrade linux-image-virtual-hwe-24.04Upgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-generic-hwe-24.04Upgrade linux-image-generic-7.0Upgrade linux-image-raspi-7.0Upgrade linux-image-gke-64k-7.0Upgrade linux-image-gke-hwe-26.04Upgrade linux-image-generic-hwe-26.04Upgrade linux-image-7.0.0-31-genericUpgrade linux-image-raspiUpgrade linux-image-7.0.0-1018-nvidiaUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-oem-26.04aUpgrade linux-image-realtime-64kUpgrade linux-image-virtualUpgrade linux-image-nvidia-64kUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-7.0.0-2018-nvidia-bos-64kUpgrade linux-image-awsUpgrade linux-image-7.0.0-1012-awsUpgrade linux-image-nvidia-7.0Upgrade linux-image-gcpUpgrade linux-image-7.0.0-1006-gke-64kUpgrade linux-image-realtimeUpgrade linux-image-gke-64kUpgrade linux-image-7.0.0-1012-aws-64kUpgrade linux-image-realtime-64k-hwe-26.04 | Sep 14, 2026 | Sep 7, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Aug 13, 2026 | Jul 25, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub