CVE-2026-64397
Awaiting Analysis Awaiting Analysis - Queue

ksmbd Directory Traversal via Stack Use-After-Free

Vulnerability report for CVE-2026-64397, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-25

Last updated on: 2026-08-11

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: serialize QUERY_DIRECTORY requests per file smb2_query_dir() stores a pointer to its stack-allocated private data in the ksmbd_file readdir_data. Concurrent QUERY_DIRECTORY requests using the same file handle can overwrite this pointer while an iterate_dir() callback is still using it, resulting in a stack use-after-free. Add a per-file mutex and hold it while accessing the shared directory enumeration state. The lock covers scan restart, dot entry state, readdir_data setup and iteration, and response construction. This prevents another request from replacing readdir_data.private before the current request has finished using it and also serializes the shared file position.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-25
Last Modified
2026-08-11
Generated
2026-08-14
AI Q&A
2026-07-25
EPSS Evaluated
2026-08-13
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux_kernel ksmbd *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a stack use-after-free vulnerability in the Linux kernel's ksmbd implementation. It occurs when concurrent QUERY_DIRECTORY requests using the same file handle overwrite a pointer to stack-allocated data while another request is still using it. The issue arises because smb2_query_dir() stores a pointer to its private data in the ksmbd_file structure, which can be corrupted by another request.

Detection Guidance

This vulnerability is specific to the Linux kernel's ksmbd implementation and requires kernel-level detection. There are no direct network or system commands to detect it as it is a race condition in the kernel code. Monitoring for crashes or memory corruption in ksmbd-related processes may indicate exploitation attempts.

Impact Analysis

This vulnerability could allow an attacker to execute arbitrary code, escalate privileges, or cause a denial of service on systems running vulnerable versions of the Linux kernel with ksmbd enabled. It may lead to system crashes or unauthorized access if exploited.

Compliance Impact

This vulnerability does not directly affect compliance with GDPR, HIPAA, or similar standards as it is a low-level kernel memory corruption issue in the ksmbd SMB server implementation. Compliance impacts would only occur if exploitation led to unauthorized data access or service disruption, which is not specified in the provided context.

Mitigation Strategies

Update your Linux kernel to the latest stable version that includes the fix for this vulnerability. If immediate patching is not possible, consider disabling the ksmbd module to prevent potential exploitation until the update is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-64397. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart