CVE-2026-64397
published critical CVSS 3.1 · 9.8ksmbd: serialize QUERY_DIRECTORY requests per file
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 1426fd79102539bc0ab5c8fced047ad4313b9908 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 2a64dbf9c739ddf7a25a066507597bf89f8f73d2 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 64dac2d486ec1eb18dc00968b16a230b6b75ec24 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < a1d5d31cad593ea5e1b637f2f39c9ef6d09d1199 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < fd22b039a5a05bc1d6818e9dcd1001fb432a829d · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < be6d26bf27499977c746abc163659915082348d8 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 6.1.178 through 6.1.* (unaffected · semver) · 6.6.145 through 6.6.* (unaffected · semver) · 6.12.96 through 6.12.* (unaffected · semver) · 6.18.39 through 6.18.* (unaffected · semver) · 7.1.4 through 7.1.* (unaffected · semver) · 7.2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.180-1 | DLA-4720-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.100-1~deb12u1 | DLA-4724-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.180-1~deb11u1 | DLA-4723-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.1.7-1.1 | OPENSUSE-SU-2026:11476-1 |
| Ubuntu | jammy | linux-aws-6.8-cloud-tools-6.8.0-1069 | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1069 | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1069 | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-azure-6.8 | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-6.8-cloud-tools-6.8.0-1073 | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-6.8-headers-6.8.0-1073 | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-6.8-tools-6.8.0-1073 | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-fde-6.8 | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-fde-6.8-cloud-tools-6.8.0-1071 | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-fde-6.8-headers-6.8.0-1071 | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-fde-6.8-tools-6.8.0-1071 | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1067-oracle | Advisory build | 6.8.0-1067.71~22.04.1 | USN-9025-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1067-oracle-64k | Advisory build | 6.8.0-1067.71~22.04.1 | USN-9025-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1068-nvidia | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1068-nvidia-64k | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1069-aws | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1069-aws-64k | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1069-ibm | Advisory build | 6.8.0-1069.70~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1071-azure-fde | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1073-azure | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1073-gcp | Advisory build | 6.8.0-1073.81~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1073-gcp-64k | Advisory build | 6.8.0-1073.81~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-149-generic | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-149-generic-64k | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-149-lowlatency | Advisory build | 6.8.0-149.149.1~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-149-lowlatency-64k | Advisory build | 6.8.0-149.149.1~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.1-1064-realtime | Advisory build | 6.8.1-1064.65~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1069-aws | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1069-aws-64k | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1071-azure-fde | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1073-azure | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-149-generic | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-149-lowlatency | Advisory build | 6.8.0-149.149.1~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.1-1064-realtime | Advisory build | 6.8.1-1064.65~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1073.81~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-gcp-6.8-headers-6.8.0-1073 | Advisory build | 6.8.0-1073.81~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-gcp-6.8-tools-6.8.0-1073 | Advisory build | 6.8.0-1073.81~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1067-oracle | Advisory build | 6.8.0-1067.71~22.04.1 | USN-9025-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1067-oracle-64k | Advisory build | 6.8.0-1067.71~22.04.1 | USN-9025-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1068-nvidia | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1068-nvidia-64k | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1069-aws | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1069-aws-64k | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1069-ibm | Advisory build | 6.8.0-1069.70~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1071-azure-fde | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1073-azure | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1073-gcp | Advisory build | 6.8.0-1073.81~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1073-gcp-64k | Advisory build | 6.8.0-1073.81~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-headers-6.8.0-149-generic | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-headers-6.8.0-149-generic-64k | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-headers-6.8.0-149-lowlatency | Advisory build | 6.8.0-149.149.1~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-headers-6.8.0-149-lowlatency-64k | Advisory build | 6.8.0-149.149.1~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-headers-6.8.1-1064-realtime | Advisory build | 6.8.1-1064.65~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-hwe-6.8 | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-hwe-6.8-cloud-tools-6.8.0-149 | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-hwe-6.8-headers-6.8.0-149 | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-hwe-6.8-tools-6.8.0-149 | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-ibm-6.8 | Advisory build | 6.8.0-1069.70~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-ibm-6.8-headers-6.8.0-1069 | Advisory build | 6.8.0-1069.70~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-ibm-6.8-tools-6.8.0-1069 | Advisory build | 6.8.0-1069.70~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-image-6.8.0-149-generic | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1067-oracle | Advisory build | 6.8.0-1067.71~22.04.1 | USN-9025-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1067-oracle-64k | Advisory build | 6.8.0-1067.71~22.04.1 | USN-9025-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1068-nvidia | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1068-nvidia-64k | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1069-aws | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1069-aws-64k | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1069-ibm | Advisory build | 6.8.0-1069.70~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1071-azure-fde | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1073-azure | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1073-gcp | Advisory build | 6.8.0-1073.81~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1073-gcp-64k | Advisory build | 6.8.0-1073.81~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-149-generic | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-149-generic-64k | Advisory build | 6.8.0-149.149~22.04.1 | USN-9066-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-149-lowlatency | Advisory build | 6.8.0-149.149.1~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-149-lowlatency-64k | Advisory build | 6.8.0-149.149.1~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.1-1064-realtime | Advisory build | 6.8.1-1064.65~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8 | Advisory build | 6.8.0-149.149.1~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-149 | Advisory build | 6.8.0-149.149.1~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-headers-6.8.0-149 | Advisory build | 6.8.0-149.149.1~22.04.1 | USN-9024-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - KSMBD processes attacker-supplied SMB2 QUERY_DIRECTORY requests over TCP port 445, so the vulnerable callback is remotely reachable. AC:L - The attacker controls both concurrent requests using the same directory handle and can prolong one enumeration while rapidly completing the other, making the race repeatable. PR:N - Although a valid session, tree connection, and readable directory handle are required, ksmbd supports passwordless guest sessions; a guest-readable share therefore permits exploitation without pre-existing privileges. UI:N - No victim action is required after the SMB server and accessible share are available. S:U - Exploitation compromises the kernel hosting the SMB server without crossing a separate virtualization, sandbox, or IOMMU security authority. C:H - The stack use-after-free exposes stale stack, work, search-pattern, and response-buffer pointers, providing a defensible path to high-impact kernel memory disclosure. I:H - The callback writes attacker-influenced directory-entry data through a stale d_info pointer and modifies reclaimed stack or response-buffer memory, potentially enabling arbitrary corruption and code execution. A:H - Dereferencing or writing through the freed stack and associated stale heap pointers can cause a kernel oops or panic, and the attacker can trigger the race repeatedly over the network.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 1426fd79102539bc0ab5c8fced047ad4313b9908 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 2a64dbf9c739ddf7a25a066507597bf89f8f73d2 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 64dac2d486ec1eb18dc00968b16a230b6b75ec24 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < a1d5d31cad593ea5e1b637f2f39c9ef6d09d1199 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < fd22b039a5a05bc1d6818e9dcd1001fb432a829d (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < be6d26bf27499977c746abc163659915082348d8 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)6.1.178 through 6.1.* (unaffected · semver)6.6.145 through 6.6.* (unaffected · semver)6.12.96 through 6.12.* (unaffected · semver)6.18.39 through 6.18.* (unaffected · semver)7.1.4 through 7.1.* (unaffected · semver)7.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/1426fd79102539bc0ab5c8fced047ad4313b9908
- https://git.kernel.org/stable/c/2a64dbf9c739ddf7a25a066507597bf89f8f73d2
- https://git.kernel.org/stable/c/64dac2d486ec1eb18dc00968b16a230b6b75ec24
- https://git.kernel.org/stable/c/a1d5d31cad593ea5e1b637f2f39c9ef6d09d1199
- https://git.kernel.org/stable/c/be6d26bf27499977c746abc163659915082348d8
- https://git.kernel.org/stable/c/fd22b039a5a05bc1d6818e9dcd1001fb432a829d
Provider assertions
1Linux · cna
ksmbd: serialize QUERY_DIRECTORY requests per file
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 768ceed1ca2b0051aafee7a8a0603c083519081d722f2b48fa1db272843540a0
- Ingested
- 23 Sep 2026, 09:25:47 UTC
- Source record
- Official CVE record