Junglewise Threat Intelligence

CVE-2026-64437: Linux Kernel ksmbd use-after-free in smb2_cancel

CVE-2026-64437 · Severity: info · CVSS 0 · Published 2026-07-25

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's SMB server (ksmbd) could allow an authenticated user to cause a system crash. The issue occurs when specific file locking requests are closed and then cancelled in a specific sequence, leading to memory corruption. This could disrupt file sharing services and impact overall system availability.

Technical details

A use-after-free (UAF) vulnerability exists in the ksmbd component of the Linux kernel due to improper state management of deferred file locks. When an SMB2_CLOSE command is issued on a locking handle, the work state is set to KSMBD_WORK_CLOSED, which triggers the freeing of the associated file_lock object but fails to remove the work from the asynchronous request list. A subsequent SMB2_CANCEL request for the same AsyncId then attempts to execute the cancellation function on the already-freed file_lock object. This vulnerability requires an authenticated SMB client to exploit and can lead to a kernel panic (denial of service). The fix ensures that only works in the KSMBD_WORK_ACTIVE state can have their cancellation functions fired.

Affected products

  • Linux Linux Kernel 7.1-rc7 and earlier versions

Timeline

  • 2026-06-10: disclosed: Initial patch authored
  • 2026-07-25: advisory: CVE-2026-64437 published

References

Related threats