CVE-2026-64397 Details
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.
A vulnerability in the Linux kernel's ksmbd component allows for concurrent QUERY_DIRECTORY requests using the same file handle to overwrite a pointer to stack-allocated private data. This can occur while an iterate_dir() callback is still in use, leading to a stack use-after-free condition. The issue has been addressed by adding a per-file mutex to synchronize access to the shared directory enumeration state, preventing one request from interfering with another. The vulnerability affects the Linux kernel stable tree.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for upgrading the Linux kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1426fd79102539bc0ab5c8fced047ad4313b9908 | kernel.org | Patch |
| https://git.kernel.org/stable/c/2a64dbf9c739ddf7a25a066507597bf89f8f73d2 | kernel.org | Patch |
| https://git.kernel.org/stable/c/64dac2d486ec1eb18dc00968b16a230b6b75ec24 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a1d5d31cad593ea5e1b637f2f39c9ef6d09d1199 | kernel.org | Patch |
| https://git.kernel.org/stable/c/be6d26bf27499977c746abc163659915082348d8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/fd22b039a5a05bc1d6818e9dcd1001fb432a829d | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.15, < 6.1.178 >= 6.2, < 6.6.145 >= 6.7, < 6.12.96 >= 6.13, < 6.18.39 >= 6.19, < 7.1.4 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 4, 2026 | Initial Analysis | [email protected] |
| Aug 17, 2026 | CVE Modified | kernel.org |
| Jul 27, 2026 | CVE Modified | kernel.org |
| Jul 25, 2026 | New CVE Received | kernel.org |