In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix null pointer dereference in compare_guid_key()
session_fd_check() walks the per-inode m_op_list during durable-handle session teardown and sets op->conn = NULL for every opinfo whose conn matched the closing session's connection. The matching opinfo, however, stays linked in its per-ClientGuid lease_table_list entry's lb->lease_list because destroy_lease_table() only runs on full TCP-connection teardown, not on SESSION_LOGOFF.
If the same TCP connection then negotiates a fresh session with the same ClientGuid (ClientGuid is bound to NEGOTIATE, not the session, and is unchanged across LOGOFF + SETUP) and issues a SMB2 CREATE with a lease context on a different inode, find_same_lease_key() walks lb->lease_list, reaches the stale opinfo, and calls compare_guid_key(), which unconditionally dereferences opinfo->conn->ClientGUID. The conn pointer is NULL and the kernel panics.
Reproducer requires only a successful SMB2 SESSION_SETUP and a share configured with 'durable handles = yes'. KASAN report on mainline 70390501d194:
general protection fault, probably for non-canonical address 0xdffffc0000000069: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000348-0x000000000000034f] Workqueue: ksmbd-io handle_ksmbd_work RIP: 0010:bcmp+0x5b/0x230 Call Trace: compare_guid_key+0x4b/0xd0 find_same_lease_key+0x324/0x690 smb2_open+0x6aea/0x8e60 handle_ksmbd_work+0x796/0xee0 ...
Faulting address 0x348 is the offset of ClientGUID within struct ksmbd_conn, confirming opinfo->conn was NULL.
Read opinfo->conn once and bail out if it has been cleared by a concurrent session_fd_check(). A half-detached opinfo cannot be the owner of an active lease, so returning 0 is the correct match result.
CVSS Details
- CVSS 3.1 Base Score: 7.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux | Jul 23, 2026 | Jul 23, 2026 |
| Ubuntu | — | Upgrade linux-image-nvidia-64k-7.0Upgrade linux-image-nvidia-bos-7.0Upgrade linux-image-azure-fde-7.0Upgrade linux-image-gcp-7.0Upgrade linux-image-oracle-7.0Upgrade linux-image-raspiUpgrade linux-image-7.0.0-1016-nvidiaUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-7.0.0-1010-azureUpgrade linux-image-azureUpgrade linux-image-7.0.0-2016-nvidia-bos-64kUpgrade linux-image-ibmUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-7.0.0-1009-azure-fdeUpgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-7.0.0-1009-awsUpgrade linux-image-nvidia-bosUpgrade linux-image-7.0.0-2016-nvidia-bosUpgrade linux-image-7.0.0-1015-raspiUpgrade linux-image-aws-64kUpgrade linux-image-ibm-7.0Upgrade linux-image-7.0.0-1009-aws-64kUpgrade linux-image-7.0.0-1010-ibmUpgrade linux-image-nvidiaUpgrade linux-image-aws-64k-7.0Upgrade linux-image-aws-7.0Upgrade linux-image-oracleUpgrade linux-image-raspi-realtimeUpgrade linux-image-nvidia-64kUpgrade linux-image-azure-7.0Upgrade linux-image-awsUpgrade linux-image-oracle-64k-7.0Upgrade linux-image-7.0.0-1008-oracle-64kUpgrade linux-image-7.0.0-1016-nvidia-64kUpgrade linux-image-7.0.0-1015-raspi-realtimeUpgrade linux-image-azure-fdeUpgrade linux-image-raspi-7.0Upgrade linux-image-oracle-64kUpgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-7.0.0-1008-oracleUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-gcpUpgrade linux-image-nvidia-7.0Upgrade linux-image-nvidia-bos-64kUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-7.0.0-1014-azureUpgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-gcp-64k | Jul 21, 2026 | Jul 20, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Aug 3, 2026 | Jul 19, 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