9.8

CVE-2026-64397: ksmbd: serialize QUERY_DIRECTORY requests per file

Analyzed
AliasesUBUNTU-CVE-2026-64397DEBIAN-CVE-2026-64397
Published 25-07-2026Last modified 17-08-2026

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.

Priority
Prioritisesevere

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?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
0.48%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 23 · Related 20

Timeline

  1. 25-07-2026
    PublishedVulnerability first disclosed.
  2. 17-08-2026
    Last 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

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

21-10-202620-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

29 links
Show all 29 references