CVE-2026-64396
published high CVSS 3.1 · 8.8ksmbd: fix UAF of struct file_lock in SMB2_LOCK deferred-lock cancellation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 367c42a611fe488b7b03f1f6737f4dee0e8b20a2 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 7703fd9aba1f2483c8e55f9ff73b7663e0761ed9 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 463bbd79698513af4dad50fe1c573825f297ca2e · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 5aa1cb01155f96824003baf7997cdf1f150caba3 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 5c75275c0fc9a2deb0d8f5604edcb16f288171c8 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < d20d1c8ba5765d1d12eefc0aee6385ab3f240e1e · 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: fix UAF of struct file_lock in SMB2_LOCK deferred-lock cancellation When a blocking byte-range lock request is deferred in the FILE_LOCK_DEFERRED path, ksmbd registers the asynchronous work into the connection's async_requests list via setup_async_work(). The cancel callback smb2_remove_blocked_lock() holds a reference to the flock. If the lock waiter is subsequently woken up but the work state is no longer KSMBD_WORK_ACTIVE (e.g., due to a concurrent cancellation), the cleanup path calls locks_free_lock(flock) without dequeuing the work from the async_requests list. Concurrently, smb2_cancel() walks the list under conn->request_lock and invokes the cancel callback, which then dereferences the already freed 'flock'. This leads to a slab-use-after-free inside __wake_up_common. Fix this by restructuring the cleanup logic after the worker returns from ksmbd_vfs_posix_lock_wait(). Move list_del(&smb_lock->llist) and release_async_work(work) to the top of the cleanup block. This guarantees that the async work is completely dequeued and serialized under conn->request_lock before locks_free_lock(flock) is called, rendering the flock unreachable for any concurrent smb2_cancel().
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
- 8.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - ksmbd accepts remote SMB traffic over TCP port 445, and SMB2 LOCK, CLOSE, and CANCEL requests reach the vulnerable code through the network handler. AC:L - The attacker can create both conflicting file handles, obtain the deferred request's AsyncId, and control the CLOSE/CANCEL sequencing, so both sides of the race are attacker-controlled. PR:L - SMB2 LOCK requires a valid SMB session, tree connection, and session-owned open file handle. Any ordinary authenticated share user suffices; administrative privileges are unnecessary. UI:N - The attacker can create the handles, conflicting locks, and cancellation requests without any victim action. S:U - The UAF occurs within the host kernel's ksmbd security authority and does not inherently cross a separate virtualization or sandbox boundary. C:H - The file_lock UAF permits attacker-influenced slab reuse and stale kernel-pointer dereferences, making kernel memory disclosure defensible. I:H - The stale callback performs list deletion and wait-queue operations through freed or reallocated fields, enabling kernel heap corruption, arbitrary-write primitives, and potential code execution. A:H - The UAF reaches __locks_delete_block or __wake_up_common and can cause a kernel oops or panic; a remote attacker can repeatedly retrigger it.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 367c42a611fe488b7b03f1f6737f4dee0e8b20a2 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 7703fd9aba1f2483c8e55f9ff73b7663e0761ed9 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 463bbd79698513af4dad50fe1c573825f297ca2e (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 5aa1cb01155f96824003baf7997cdf1f150caba3 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 5c75275c0fc9a2deb0d8f5604edcb16f288171c8 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < d20d1c8ba5765d1d12eefc0aee6385ab3f240e1e (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/367c42a611fe488b7b03f1f6737f4dee0e8b20a2
- https://git.kernel.org/stable/c/463bbd79698513af4dad50fe1c573825f297ca2e
- https://git.kernel.org/stable/c/5aa1cb01155f96824003baf7997cdf1f150caba3
- https://git.kernel.org/stable/c/5c75275c0fc9a2deb0d8f5604edcb16f288171c8
- https://git.kernel.org/stable/c/7703fd9aba1f2483c8e55f9ff73b7663e0761ed9
- https://git.kernel.org/stable/c/d20d1c8ba5765d1d12eefc0aee6385ab3f240e1e
Provider assertions
1Linux · cna
ksmbd: fix UAF of struct file_lock in SMB2_LOCK deferred-lock cancellation
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e0c702c1265d40688b292eb17b8688b94a6ce5cf4c250732ba18b7225884d226
- Ingested
- 23 Sep 2026, 09:25:47 UTC
- Source record
- Official CVE record