PT-2026-64618 · Linux · Linux

CVE-2026-64397

·

Published

2026-07-25

·

Updated

2026-07-25

None

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Found an issue in the description? Have something to add? Feel free to write us 👾

Related Identifiers

CVE-2026-64397

Affected Products

Linux