In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix UAF of struct file_lock in SMB2_LOCK deferred-lock cancellation When… (CVE-2026-64396)
A use-after-free (UAF) vulnerability was identified and fixed in the Linux kernel's ksmbd component related to SMB2_LOCK deferred-lock cancellation. The issue occurs when asynchronous work handling deferred byte-range lock requests does not properly dequeue work items before freeing associated lock structures, leading to potential dereferencing of freed memory. This vulnerability could cause kernel memory corruption or instability. The fix restructures the cleanup logic to ensure proper serialization and removal of async work before freeing resources.
AI Analysis
Technical Summary
The vulnerability in the Linux kernel's ksmbd subsystem involves a use-after-free condition of the struct file_lock during SMB2_LOCK deferred-lock cancellation. When a blocking byte-range lock request is deferred, ksmbd registers asynchronous work. If the lock waiter wakes but the work state is no longer active, the cleanup frees the lock without dequeuing the async work. Concurrent cancellation can then dereference the freed lock, causing a slab-use-after-free inside __wake_up_common. The patch moves list removal and async work release to the start of cleanup to prevent concurrent access to freed memory.
Potential Impact
This use-after-free vulnerability can lead to kernel memory corruption, potentially causing system instability or crashes. While no known exploits are reported in the wild, successful exploitation could affect system reliability and security by corrupting kernel memory structures.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability has been resolved in the Linux kernel by restructuring the cleanup logic in ksmbd. Users and administrators should monitor official Linux kernel advisories and apply updates when available to mitigate this issue.
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix UAF of struct file_lock in SMB2_LOCK deferred-lock cancellation When… (CVE-2026-64396)
Description
A use-after-free (UAF) vulnerability was identified and fixed in the Linux kernel's ksmbd component related to SMB2_LOCK deferred-lock cancellation. The issue occurs when asynchronous work handling deferred byte-range lock requests does not properly dequeue work items before freeing associated lock structures, leading to potential dereferencing of freed memory. This vulnerability could cause kernel memory corruption or instability. The fix restructures the cleanup logic to ensure proper serialization and removal of async work before freeing resources.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's ksmbd subsystem involves a use-after-free condition of the struct file_lock during SMB2_LOCK deferred-lock cancellation. When a blocking byte-range lock request is deferred, ksmbd registers asynchronous work. If the lock waiter wakes but the work state is no longer active, the cleanup frees the lock without dequeuing the async work. Concurrent cancellation can then dereference the freed lock, causing a slab-use-after-free inside __wake_up_common. The patch moves list removal and async work release to the start of cleanup to prevent concurrent access to freed memory.
Potential Impact
This use-after-free vulnerability can lead to kernel memory corruption, potentially causing system instability or crashes. While no known exploits are reported in the wild, successful exploitation could affect system reliability and security by corrupting kernel memory structures.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability has been resolved in the Linux kernel by restructuring the cleanup logic in ksmbd. Users and administrators should monitor official Linux kernel advisories and apply updates when available to mitigate this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-w2fg-c334-xw3q
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64396"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a65420a9c2644c7f8083b9d
Added to database: 07/25/2026, 23:08:58 UTC
Last enriched: 07/25/2026, 23:25:24 UTC
Last updated: 07/26/2026, 05:05:38 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.