{"id":"CVE-2026-99422","aliases":["CVE-2026-99422"],"related":[],"kind":"vulnerability","state":"published","title":"ovl: use the pinned upper dir in ovl_fix_origin()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: use the pinned upper dir in ovl_fix_origin()\n\nRenames made directly on the upper filesystem during a lookup crash the\nkernel.\n\nA dentry that is passed to vfs_setxattr() must be pinned.\novl_fix_origin() passes upper->d_parent to ovl_set_impure() without a\nreference, and the lookup holds no lock of the upper directory. A\nrename on the upper filesystem changes d_parent, and only the child\npins the new parent, so a second rename and an rmdir free it.\n\nWith delays in ovl_fix_origin() and ovl_set_impure(), renaming the upper\ndirectory twice and removing the intermediate parent during the lookup\nof a merge directory without an origin xattr gave a KASAN\nuse-after-free in vfs_setxattr().\n\nFix this by passing the upper dentry that the overlay parent holds.\n\n[amir: add helper ovl_set_impure_dir()]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: use the pinned upper dir in ovl_fix_origin()\n\nRenames made directly on the upper filesystem during a lookup crash the\nkernel.\n\nA dentry that is passed to vfs_setxattr() must be pinned.\novl_fix_origin() passes upper->d_parent to ovl_set_impure() without a\nreference, and the lookup holds no lock of the upper directory. A\nrename on the upper filesystem changes d_parent, and only the child\npins the new parent, so a second rename and an rmdir free it.\n\nWith delays in ovl_fix_origin() and ovl_set_impure(), renaming the upper\ndirectory twice and removing the intermediate parent during the lookup\nof a merge directory without an origin xattr gave a KASAN\nuse-after-free in vfs_setxattr().\n\nFix this by passing the upper dentry that the overlay parent holds.\n\n[amir: add helper ovl_set_impure_dir()]","source":"cvelist"}],"published":"2026-11-19T14:40:24.816Z","modified":"2026-11-23T08:17:45.663Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9678e630305724487f1fc101d6b83c383ff9cc90","fixed":"8ae1e7876107fbe7318ac5594b8bf2a887a9c578","status":"affected"},{"type":"git","introduced":"9678e630305724487f1fc101d6b83c383ff9cc90","fixed":"50ae0a83625d08b4be4f047c293cf1149fe7ea98","status":"affected"},{"type":"git","introduced":"9678e630305724487f1fc101d6b83c383ff9cc90","fixed":"17a540e65e567c8e4dd165a3ce5b592842ba5ab5","status":"affected"},{"type":"git","introduced":"9678e630305724487f1fc101d6b83c383ff9cc90","fixed":"b219cdaea16b2f3e8e13a63662d462addd8a2cd0","status":"affected"},{"type":"git","introduced":"9678e630305724487f1fc101d6b83c383ff9cc90","fixed":"77c9b481faacf46b9d9282ffaa71afbac7acf819","status":"affected"},{"type":"git","introduced":"9678e630305724487f1fc101d6b83c383ff9cc90","fixed":"4f61ff2ebfb3d2967b83b6a4d456242244d5a61f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8ae1e7876107fbe7318ac5594b8bf2a887a9c578","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/50ae0a83625d08b4be4f047c293cf1149fe7ea98","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/17a540e65e567c8e4dd165a3ce5b592842ba5ab5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b219cdaea16b2f3e8e13a63662d462addd8a2cd0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/77c9b481faacf46b9d9282ffaa71afbac7acf819","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f61ff2ebfb3d2967b83b6a4d456242244d5a61f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99422","url":"https://www.cve.org/CVERecord?id=CVE-2026-99422","licence":"CVE Terms of Use","modified":"2026-11-23T08:02:33.650Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99422","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99422","licence":"Public domain","modified":"2026-11-23T08:17:45.663Z"}],"updatedAt":"2026-11-25T22:59:52.063Z","epss":{"score":0.00152,"percentile":0.04593,"date":"2026-12-01T12:00:22.000Z"}}