In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent path traversal bypass by restricting caseless retry… (CVE-2026-64400)
A vulnerability in the Linux kernel's ksmbd component allowed a path traversal bypass due to improper handling of error codes during caseless path lookup retries. This flaw could enable write-capable users to create zero-length files or directories outside the intended share boundary. The issue was fixed by ensuring only the specific -ENOENT error triggers the caseless retry, while other errors like -EXDEV from path traversal attempts are returned immediately.
AI Analysis
Technical Summary
The Linux kernel's ksmbd_vfs_path_lookup() function enforces LOOKUP_BENEATH to restrict path resolution within the share root, preventing escape via '..' components. However, in __ksmbd_vfs_kern_path() under caseless mode, the function incorrectly ignores the -EXDEV error returned by vfs_path_parent_lookup() and proceeds to caseless retry logic meant only for missing files (-ENOENT). This retry reconstructs the path and bypasses LOOKUP_BENEATH, allowing write-capable users to create zero-length files or directories outside the exported share. The fix ensures that only -ENOENT errors trigger the retry, while other errors like -EXDEV are returned immediately, preventing the bypass.
Potential Impact
This vulnerability allows users with write permissions to create files or directories outside the intended share boundary, potentially leading to unauthorized file system modifications outside the exported share. There is no indication of remote code execution or privilege escalation beyond this scope.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this vulnerability by correcting error handling in the ksmbd caseless path lookup logic. Users should apply the official kernel updates that include this fix. Since this is a kernel-level vulnerability, updating to a patched kernel version is the recommended remediation. Patch status is not yet confirmed in this data; check the vendor or Linux kernel advisories for the current remediation guidance.
In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent path traversal bypass by restricting caseless retry… (CVE-2026-64400)
Description
A vulnerability in the Linux kernel's ksmbd component allowed a path traversal bypass due to improper handling of error codes during caseless path lookup retries. This flaw could enable write-capable users to create zero-length files or directories outside the intended share boundary. The issue was fixed by ensuring only the specific -ENOENT error triggers the caseless retry, while other errors like -EXDEV from path traversal attempts are returned immediately.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's ksmbd_vfs_path_lookup() function enforces LOOKUP_BENEATH to restrict path resolution within the share root, preventing escape via '..' components. However, in __ksmbd_vfs_kern_path() under caseless mode, the function incorrectly ignores the -EXDEV error returned by vfs_path_parent_lookup() and proceeds to caseless retry logic meant only for missing files (-ENOENT). This retry reconstructs the path and bypasses LOOKUP_BENEATH, allowing write-capable users to create zero-length files or directories outside the exported share. The fix ensures that only -ENOENT errors trigger the retry, while other errors like -EXDEV are returned immediately, preventing the bypass.
Potential Impact
This vulnerability allows users with write permissions to create files or directories outside the intended share boundary, potentially leading to unauthorized file system modifications outside the exported share. There is no indication of remote code execution or privilege escalation beyond this scope.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this vulnerability by correcting error handling in the ksmbd caseless path lookup logic. Users should apply the official kernel updates that include this fix. Since this is a kernel-level vulnerability, updating to a patched kernel version is the recommended remediation. Patch status is not yet confirmed in this data; check the vendor or Linux kernel advisories for the current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cg5c-7728-29v7
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64400"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a65420a9c2644c7f8084180
Added to database: 07/25/2026, 23:08:58 UTC
Last enriched: 07/25/2026, 23:27:09 UTC
Last updated: 07/26/2026, 03:55:07 UTC
Views: 4
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.