# CVE-2026-64400: ksmbd: prevent path traversal bypass by restricting caseless retry

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.64% (percentile 45, 2026-11-26)
- **Published:** 2026-07-25T08:50:43.655Z
- **Modified:** 2026-10-30T13:19:36.180Z

## Who should check

- Anyone running Linux \>= 6927ffe7479c72e7ebf885507227266a75f7c97d, \< 21f050439db157f2afcc19885dec14549ca6ffc0; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< eec1dd2586c4016b7555a5d047db2b3756459fb2; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< a1c331d98313380c38f616c8b28b890ec8ef9c28; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< cfb5a56c218888f9d74165dff0c282cd0be97983; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 8c9a4f1327eb71efbf14842e7b8a6d965077eb67; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 54bab9ba5a9f156ffa9324fcbe5a356fd0242f95; 019aae488dbc67c97a33db03652e20e2c9e3afa7; ef6cc1c465786b3e4e735d1ab8b616b3e94402df; \>= 6.1.71, \< 6.1.191; \>= 5.15.145, \< 5.16; …
- Anyone running Linux 6.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: prevent path traversal bypass by restricting caseless retry

ksmbd\_vfs\_path\_lookup() enforces LOOKUP\_BENEATH to restrict path
resolution within the share root. When a crafted path attempts to
escape the share boundary using parent-directory components ('..'),
vfs\_path\_parent\_lookup() detects this and immediately fails,
returning -EXDEV.

However, a bug exists in \_\_ksmbd\_vfs\_kern\_path() under caseless mode.
The function fails to intercept the -EXDEV error and erroneously
falls through to the caseless retry logic, which is intended only
for genuinely missing files. During this retry process, the path
is reconstructed, leading to an unintended LOOKUP\_BENEATH bypass
that allows write-capable users to create zero-length files or
directories outside the exported share.

Fix this by ensuring that the execution only proceeds to the caseless
lookup retry when the error is specifically -ENOENT. Any other errors,
such as -EXDEV from a path traversal attempt, must be returned immediately.

## Affected and fixed versions

- Linux: \>= 6927ffe7479c72e7ebf885507227266a75f7c97d, \< 21f050439db157f2afcc19885dec14549ca6ffc0; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< eec1dd2586c4016b7555a5d047db2b3756459fb2; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< a1c331d98313380c38f616c8b28b890ec8ef9c28; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< cfb5a56c218888f9d74165dff0c282cd0be97983; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 8c9a4f1327eb71efbf14842e7b8a6d965077eb67; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 54bab9ba5a9f156ffa9324fcbe5a356fd0242f95; 019aae488dbc67c97a33db03652e20e2c9e3afa7; ef6cc1c465786b3e4e735d1ab8b616b3e94402df; \>= 6.1.71, \< 6.1.191; \>= 5.15.145, \< 5.16; … (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64400. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64400.md
Affected: Linux >= 6927ffe7479c72e7ebf885507227266a75f7c97d, < 21f050439db157f2afcc19885dec14549ca6ffc0; >= 74d7970febf7e9005375aeda0df821d2edffc9f7, < eec1dd2586c4016b7555a5d047db2b3756459fb2; >= 74d7970febf7e9005375aeda0df821d2edffc9f7, < a1c331d98313380c38f616c8b28b890ec8ef9c28; >= 74d7970febf7e9005375aed…
Fixed in: Linux 21f050439db157f2afcc19885dec14549ca6ffc0, Linux 8c9a4f1327eb71efbf14842e7b8a6d965077eb67, Linux 54bab9ba5a9f156ffa9324fcbe5a356fd0242f95, Linux 6.1.191, Linux 5.16

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64400 being exploited?

There is no confirmed exploitation: CVE-2026-64400 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.64% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64400?

High: CVSS 8.6 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-64400?

Linux \>= 6927ffe7479c72e7ebf885507227266a75f7c97d, \< 21f050439db157f2afcc19885dec14549ca6ffc0; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< eec1dd2586c4016b7555a5d047db2b3756459fb2; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< a1c331d98313380c38f616c8b28b890ec8ef9c28; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< cfb5a56c218888f9d74165dff0c282cd0be97983; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 8c9a4f1327eb71efbf14842e7b8a6d965077eb67; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 54bab9ba5a9f156ffa9324fcbe5a356fd0242f95; 019aae488dbc67c97a33db03652e20e2c9e3afa7; ef6cc1c465786b3e4e735d1ab8b616b3e94402df; \>= 6.1.71, \< 6.1.191; \>= 5.15.145, \< 5.16; …; Linux 6.4.

### Is there a fix for CVE-2026-64400?

Yes. Fixed in Linux 21f050439db157f2afcc19885dec14549ca6ffc0, Linux 8c9a4f1327eb71efbf14842e7b8a6d965077eb67, Linux 54bab9ba5a9f156ffa9324fcbe5a356fd0242f95, Linux 6.1.191, Linux 5.16. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-64400?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8c9a4f1327eb71efbf14842e7b8a6d965077eb67>
- patch: <https://git.kernel.org/stable/c/54bab9ba5a9f156ffa9324fcbe5a356fd0242f95>
- other: <https://git.kernel.org/stable/c/21f050439db157f2afcc19885dec14549ca6ffc0>
- other: <https://git.kernel.org/stable/c/eec1dd2586c4016b7555a5d047db2b3756459fb2>
- other: <https://git.kernel.org/stable/c/a1c331d98313380c38f616c8b28b890ec8ef9c28>
- other: <https://git.kernel.org/stable/c/cfb5a56c218888f9d74165dff0c282cd0be97983>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64400>

HTML: <https://flawdb.com/CVE-2026-64400> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64400>
