{"id":"CVE-2026-64400","aliases":["CVE-2026-64400"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: prevent path traversal bypass by restricting caseless retry","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-07-25T08:50:43.655Z","modified":"2026-10-30T13:19:36.180Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","score":8.6,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6927ffe7479c72e7ebf885507227266a75f7c97d","fixed":"21f050439db157f2afcc19885dec14549ca6ffc0","status":"affected"},{"type":"git","introduced":"74d7970febf7e9005375aeda0df821d2edffc9f7","fixed":"eec1dd2586c4016b7555a5d047db2b3756459fb2","status":"affected"},{"type":"git","introduced":"74d7970febf7e9005375aeda0df821d2edffc9f7","fixed":"a1c331d98313380c38f616c8b28b890ec8ef9c28","status":"affected"},{"type":"git","introduced":"74d7970febf7e9005375aeda0df821d2edffc9f7","fixed":"cfb5a56c218888f9d74165dff0c282cd0be97983","status":"affected"},{"type":"git","introduced":"74d7970febf7e9005375aeda0df821d2edffc9f7","fixed":"8c9a4f1327eb71efbf14842e7b8a6d965077eb67","status":"affected"},{"type":"git","introduced":"74d7970febf7e9005375aeda0df821d2edffc9f7","fixed":"54bab9ba5a9f156ffa9324fcbe5a356fd0242f95","status":"affected"},{"type":"git","version":"019aae488dbc67c97a33db03652e20e2c9e3afa7","status":"affected"},{"type":"git","version":"ef6cc1c465786b3e4e735d1ab8b616b3e94402df","status":"affected"},{"type":"semver","introduced":"6.1.71","fixed":"6.1.191","status":"affected"},{"type":"semver","introduced":"5.15.145","fixed":"5.16","status":"affected"},{"type":"semver","introduced":"6.3.10","fixed":"6.4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.4","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.4","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15.145","fixed":"5.16"},{"status":"affected","introduced":"6.1.71","fixed":"6.2"},{"status":"affected","introduced":"6.3.10","fixed":"7.1.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/21f050439db157f2afcc19885dec14549ca6ffc0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eec1dd2586c4016b7555a5d047db2b3756459fb2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a1c331d98313380c38f616c8b28b890ec8ef9c28","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cfb5a56c218888f9d74165dff0c282cd0be97983","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8c9a4f1327eb71efbf14842e7b8a6d965077eb67","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54bab9ba5a9f156ffa9324fcbe5a356fd0242f95","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64400","url":"https://www.cve.org/CVERecord?id=CVE-2026-64400","licence":"CVE Terms of Use","modified":"2026-10-30T12:27:53.511Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64400","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64400","licence":"Public domain","modified":"2026-10-30T13:19:36.180Z"}],"updatedAt":"2026-11-25T22:59:30.102Z","epss":{"score":0.00639,"percentile":0.45228,"date":"2026-11-30T12:00:22.000Z"}}