{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-64400","id":"CVE-2026-64400","title":"ksmbd: prevent path traversal bypass by restricting caseless retry","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: prevent path traversal bypass by restricting caseless retry\n\nksmbd_vfs_path_lookup() enforces LOOKUP_BENEATH to restrict path\nresolution within the share root. When a crafted path attempts to\nescape the share boundary using parent-directory components ('..'),\nvfs_path_parent_lookup() detects this and immediately fails,\nret","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: prevent path traversal bypass by restricting caseless retry\n\nksmbd_vfs_path_lookup() enforces LOOKUP_BENEATH to restrict path\nresolution within the share root. When a crafted path attempts to\nescape the share boundary using parent-directory components ('..'),\nvfs_path_parent_lookup() detects this and immediately fails,\nreturning -EXDEV.\n\nHowever, a bug exists in __ksmbd_vfs_kern_path() under caseless mode.\nThe function fails to intercept the -EXDEV error and erroneously\nfalls through to the caseless retry logic, which is intended only\nfor genuinely missing files. During this retry process, the path\nis reconstructed, leading to an unintended LOOKUP_BENEATH bypass\nthat allows write-capable users to create zero-length files or\ndirectories outside the exported share.\n\nFix this by ensuring that the execution only proceeds to the caseless\nlookup retry when the error is specifically -ENOENT. Any other errors,\nsuch as -EXDEV from a path traversal attempt, must be returned immediately.","published":"2026-07-25T08:50:43.655Z","updated":"2026-11-17T07:03:36.052172383Z","reserved":"2026-07-19T15:36:31.785Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6927ffe7479c72e7ebf885507227266a75f7c97d","lessThan":"21f050439db157f2afcc19885dec14549ca6ffc0","status":"affected","versionType":"git"},{"version":"74d7970febf7e9005375aeda0df821d2edffc9f7","lessThan":"eec1dd2586c4016b7555a5d047db2b3756459fb2","status":"affected","versionType":"git"},{"version":"74d7970febf7e9005375aeda0df821d2edffc9f7","lessThan":"a1c331d98313380c38f616c8b28b890ec8ef9c28","status":"affected","versionType":"git"},{"version":"74d7970febf7e9005375aeda0df821d2edffc9f7","lessThan":"cfb5a56c218888f9d74165dff0c282cd0be97983","status":"affected","versionType":"git"},{"version":"74d7970febf7e9005375aeda0df821d2edffc9f7","lessThan":"8c9a4f1327eb71efbf14842e7b8a6d965077eb67","status":"affected","versionType":"git"},{"version":"74d7970febf7e9005375aeda0df821d2edffc9f7","lessThan":"54bab9ba5a9f156ffa9324fcbe5a356fd0242f95","status":"affected","versionType":"git"},{"version":"019aae488dbc67c97a33db03652e20e2c9e3afa7","status":"affected","versionType":"git"},{"version":"ef6cc1c465786b3e4e735d1ab8b616b3e94402df","status":"affected","versionType":"git"},{"version":"6.1.71","lessThan":"6.1.191","status":"affected","versionType":"semver"},{"version":"5.15.145","lessThan":"5.16","status":"affected","versionType":"semver"},{"version":"6.3.10","lessThan":"6.4","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","lessThan":"6.4","status":"unaffected","versionType":"semver"},{"version":"6.1.191","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.114","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.57","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.1.4","lessThanOrEqual":"7.1.*","status":"unaffected","versionType":"semver"},{"version":"7.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/21f050439db157f2afcc19885dec14549ca6ffc0","tags":["web"]},{"url":"https://git.kernel.org/stable/c/eec1dd2586c4016b7555a5d047db2b3756459fb2","tags":["web"]},{"url":"https://git.kernel.org/stable/c/a1c331d98313380c38f616c8b28b890ec8ef9c28","tags":["web"]},{"url":"https://git.kernel.org/stable/c/cfb5a56c218888f9d74165dff0c282cd0be97983","tags":["web"]},{"url":"https://git.kernel.org/stable/c/8c9a4f1327eb71efbf14842e7b8a6d965077eb67","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/54bab9ba5a9f156ffa9324fcbe5a356fd0242f95","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64400.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64400","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00447,"epssPercentile":0.39606,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-64400","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64400","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-64400","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-64400","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}