External risk intelligence

Linux Kernel ksmbd Use-After-Free Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.8)

CVE-2026-64397

The vulnerability exists in ksmbd, a kernel-based SMB server. While SMB is a network protocol, it is primarily designed for local area networks and is generally considered a significant security risk if exposed directly to the public internet. Typical deployments involve placing SMB services behind firewalls or VPNs, making direct public internet exposure uncommon.

Use After Free

Halo Surface Signal: 2 out of 5 — less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This Linux kernel vulnerability in the ksmbd component could allow an attacker to crash the system or potentially gain elevated privileges. The issue arises from how concurrent requests are handled when accessing directories, leading to a use-after-free condition. While the vulnerability is critical, its practical exploitability depends on whether the affected SMB services are directly exposed to untrusted networks.

  • Kernel flaw allows system crashes or privilege escalation.
  • A critical flaw impacting how directories are read.
  • Confirm exposure of SMB services to reduce risk.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by sending multiple requests to a server running the vulnerable Linux kernel component. These requests, specifically "QUERY_DIRECTORY" requests targeting the same file, could overwrite critical data used during directory listing. This race condition allows an attacker to trigger a use-after-free vulnerability, potentially leading to serious system compromise.

  • Entry condition: Network access to the vulnerable component.
  • Trigger point: Concurrent directory listing requests.
  • Resulting risk: Remote code execution and data corruption.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could affect system data when concurrent directory listing requests are made using the same file handle on a Linux kernel system. This race condition may lead to overwriting internal data structures, potentially impacting the integrity of directory enumeration operations.

  • System data integrity could be impacted.
  • Concurrent directory requests could overwrite data.
  • Unreliable directory listing behavior may occur.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability in the Linux kernel's ksmbd component could impact systems running the SMB protocol. Infrastructure or platform teams are likely responsible for managing the kernel, while security teams should assess exposure. The first practical step is to identify all systems where ksmbd is active, determine if they are accessible externally or host critical data, and then plan remediation based on the identified risk.

  • Infrastructure/Platform teams own the issue.
  • Verify ksmbd exposure and criticality.
  • Plan and execute kernel updates.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the ksmbd component in the Linux kernel?

ksmbd is a kernel-level implementation of the Server Message Block (SMB) protocol. It allows a Linux system to act as a file server, enabling Windows and other clients to share and access files over a network directly within the kernel for improved performance.

How does CVE-2026-64397 create a use-after-free weakness?

This vulnerability is a race condition. When multiple directory listing requests happen at once for the same file, the system mistakenly allows one request to overwrite memory data that another request is still using. This leads to a use-after-free error, where the system tries to access memory that has already been released or repurposed, potentially crashing the kernel or causing data corruption.

Do I need concurrent access to trigger this vulnerability?

Yes. An attacker must send multiple simultaneous QUERY_DIRECTORY requests targeting the same file handle. Simply accessing a directory is not enough; the flaw is specifically triggered by the timing collision of overlapping directory enumeration requests that interfere with one another's internal memory state.

Is my system at risk according to Halo Surface Signal?

Halo Surface Signal identifies this as having 'Unlikely' exposure. Because SMB is typically used within internal networks and protected by firewalls or VPNs, direct exposure to the public internet is uncommon. You should check if your ksmbd instances are accidentally reachable from untrusted networks.

What is the first step to address this CVE?

Your priority is to identify all servers in your environment where ksmbd is enabled. Once identified, verify if those systems are exposed to untrusted networks or host sensitive data. After assessing this footprint, coordinate with your infrastructure or platform teams to plan and apply the necessary kernel updates to patch the handling of directory requests.

References