CVE-2026-64397: ksmbd: serialize QUERY_DIRECTORY requests per file
Vulnerability summary
CVE-2026-64397 is a critical (CVSS 9.8) Use After Free vulnerability in linux. EPSS estimates a 0.48% chance of exploitation in the next 30 days, higher than 42.1% of scored vulnerabilities.
Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 20-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 23 · Related 20Timeline
- 25-07-2026PublishedVulnerability first disclosed.
- 17-08-2026Last modifiedVulnerability information updated.
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 metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.48%
Chance of exploitation in the next 30 days
Percentile
42%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.48% on 21-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu157 products
- linuxAll versions (No fix recorded) | < 6.8.0-147.147 | < 7.0.0-31.31
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 6.8.0-1067.70 | < 7.0.0-1012.12
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian2 products
- linux< 6.1.180-1 | < 6.12.96-1 | < 7.1.4-1
- linux-6.12< 6.12.100-1~deb12u1
Linux2 products
- linux≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 1426fd79102539bc0ab5c8fced047ad4313b9908 | ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 2a64dbf9c739ddf7a25a066507597bf89f8f73d2 | ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 64dac2d486ec1eb18dc00968b16a230b6b75ec24 | ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < a1d5d31cad593ea5e1b637f2f39c9ef6d09d1199 | ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < fd22b039a5a05bc1d6818e9dcd1001fb432a829d | ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < be6d26bf27499977c746abc163659915082348d8 | 5.15
- 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
3 vendors · 161 products