Junglewise Threat Intelligence

CVE-2026-64141: Linux Kernel ksmbd null pointer dereference in compare_guid_key

CVE-2026-64141 · Severity: info · CVSS 6.5 · Published 2026-07-19

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability exists in the Linux kernel's ksmbd server, which provides file-sharing services over a network. An authenticated user can trigger a system crash (kernel panic) by performing specific session logoff and reconnection actions when 'durable handles' are enabled. This results in a denial-of-service condition, potentially disrupting business operations and file access for all users on the affected server.

Technical details

A null pointer dereference exists in the ksmbd SMB server within the 'compare_guid_key()' function. The issue occurs because 'session_fd_check()' clears the 'opinfo->conn' pointer during session logoff, but the 'opinfo' structure remains linked in the lease list. If a client reconnects using the same ClientGuid and issues an SMB2 CREATE with a lease context, 'find_same_lease_key()' traverses the list and calls 'compare_guid_key()', which unconditionally dereferences the now-NULL connection pointer. This vulnerability requires ksmbd to be configured with 'durable handles = yes'. Patches have been released for various stable kernel branches to implement a proper NULL check using READ_ONCE.

Affected products

  • Linux Linux Kernel ksmbd component with durable handles enabled

Timeline

  • 2026-05-13: other: Patch authored
  • 2026-07-19: disclosed: CVE published

References

Related threats