CVE-2026-64400 json
ksmbd: prevent path traversal bypass by restricting caseless retry
published 2026-07-25 3 mo ago modified 2026-10-30 9 d ago also EUVD-2026-48944
- cvss
- 8.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.16, 6.1.191, 6.4, 6.6.160, 6.12.114, 6.18.57, 7.1.4, 7.2
- linux Debian 13 6.12.115-2
- linux Debian 14 7.1.4-1
debian advisories DEBIAN-CVE-2026-64400
- linux Ubuntu 26.04 LTS 7.0.0-31.31
- linux-aws Ubuntu 26.04 LTS 7.0.0-1012.12
- linux-gcp Ubuntu 26.04 LTS 7.0.0-1011.11
- linux-gke Ubuntu 26.04 LTS 7.0.0-1006.7
- linux-ibm Ubuntu 26.04 LTS 7.0.0-1013.13
- linux-azure Ubuntu 26.04 LTS 7.0.0-1014.14
- linux-raspi Ubuntu 26.04 LTS 7.0.0-1019.19
- linux-riscv Ubuntu 26.04 LTS 7.0.0-31.31.1
ubuntu advisories UBUNTU-CVE-2026-64400
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-source openSUSE Tumbleweed 7.1.7-1.1
opensuse advisories openSUSE-SU-2026:11476-1
- git.kernel.org/stable/c/21f050439db157f2afcc19885dec14549ca6ffc0 commit
- git.kernel.org/stable/c/eec1dd2586c4016b7555a5d047db2b3756459fb2 commit
- git.kernel.org/stable/c/a1c331d98313380c38f616c8b28b890ec8ef9c28 commit
- git.kernel.org/stable/c/cfb5a56c218888f9d74165dff0c282cd0be97983 commit
- git.kernel.org/stable/c/8c9a4f1327eb71efbf14842e7b8a6d965077eb67 commit
- git.kernel.org/stable/c/54bab9ba5a9f156ffa9324fcbe5a356fd0242f95 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-64400 updated
kernel: ksmbd: prevent path traversal bypass by restricting caseless retry
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.45% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/21f050439db157f2afcc19885dec14549ca6ffc0
- git.kernel.org /stable/c/eec1dd2586c4016b7555a5d047db2b3756459fb2
- git.kernel.org /stable/c/a1c331d98313380c38f616c8b28b890ec8ef9c28
- git.kernel.org /stable/c/cfb5a56c218888f9d74165dff0c282cd0be97983
-
git.kernel.org
/stable/c/8c9a4f1327eb71efbf14842e7b8a6d965077eb67
patch
-
git.kernel.org
/stable/c/54bab9ba5a9f156ffa9324fcbe5a356fd0242f95
patch
Sources
- CVE List CVE-2026-64400
- NVD CVE-2026-64400
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.