CSIRTS // UNIFIED SECURITY ADVISORY FEEDSYS ● ONLINE · POWERED BY INTELFUSIONS.COM

CVE-2026-64397

criticalCVSS 9.8covered by 2 sourcesfirst seen 2026-07-14
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.

CSIRTS triage

Other
What
The vulnerability involves improper serialization of QUERY_DIRECTORY requests per file in ksmbd.
Who is affected
Users of ksmbd are affected by this issue.
Urgency
Remediation is important to ensure proper handling of directory queries.
Action
Implement the fix for QUERY_DIRECTORY request serialization.

AI-assisted analysis generated from the source advisory — verify against the original.

⚡ Watch CVE-2026-64397

Get an email if CVE-2026-64397 is added to CISA KEV, gains public exploit code, or a new advisory cites it — max one per day, one-click unsubscribe.

Exploitation outlook

Advisory coverage (2)

External references

NVD record for CVE-2026-64397

CVE.org record

Embed the live status

CVE-2026-64397 live status badge — this badge updates automatically when the KEV or exploit status changes. How to embed it →

[![CVE-2026-64397 status](https://www.csirts.com/badge/CVE-2026-64397)](https://www.csirts.com/cve/CVE-2026-64397)