{"id":"CVE-2026-99422","summary":"ovl: use the pinned upper dir in ovl_fix_origin()","details":"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-\u003ed_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()]","modified":"2026-11-20T21:02:30.585405364Z","published":"2026-11-19T14:40:24.816Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99422.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/17a540e65e567c8e4dd165a3ce5b592842ba5ab5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f61ff2ebfb3d2967b83b6a4d456242244d5a61f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/77c9b481faacf46b9d9282ffaa71afbac7acf819"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b219cdaea16b2f3e8e13a63662d462addd8a2cd0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99422.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99422"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9678e630305724487f1fc101d6b83c383ff9cc90"},{"fixed":"17a540e65e567c8e4dd165a3ce5b592842ba5ab5"},{"fixed":"b219cdaea16b2f3e8e13a63662d462addd8a2cd0"},{"fixed":"77c9b481faacf46b9d9282ffaa71afbac7acf819"},{"fixed":"4f61ff2ebfb3d2967b83b6a4d456242244d5a61f"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99422.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.16.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99422.json"}}],"schema_version":"1.9.2"}