{"id":"CVE-2026-99422","aliases":[],"title":"ovl: use the pinned upper dir in ovl_fix_origin()","originalDescription":"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()]","severity":{"cvss":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00152,"percentile":0.04567},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Linux","range":">=9678e630305724487f1fc101d6b83c383ff9cc90, <17a540e65e567c8e4dd165a3ce5b592842ba5ab5","fixed":"17a540e65e567c8e4dd165a3ce5b592842ba5ab5"},{"ecosystem":"vendor","name":"Linux","range":">=9678e630305724487f1fc101d6b83c383ff9cc90, <4f61ff2ebfb3d2967b83b6a4d456242244d5a61f","fixed":"4f61ff2ebfb3d2967b83b6a4d456242244d5a61f"},{"ecosystem":"vendor","name":"Linux","range":">=9678e630305724487f1fc101d6b83c383ff9cc90, <50ae0a83625d08b4be4f047c293cf1149fe7ea98","fixed":"50ae0a83625d08b4be4f047c293cf1149fe7ea98"},{"ecosystem":"vendor","name":"Linux","range":">=9678e630305724487f1fc101d6b83c383ff9cc90, <77c9b481faacf46b9d9282ffaa71afbac7acf819","fixed":"77c9b481faacf46b9d9282ffaa71afbac7acf819"},{"ecosystem":"vendor","name":"Linux","range":">=9678e630305724487f1fc101d6b83c383ff9cc90, <8ae1e7876107fbe7318ac5594b8bf2a887a9c578","fixed":"8ae1e7876107fbe7318ac5594b8bf2a887a9c578"},{"ecosystem":"vendor","name":"Linux","range":">=9678e630305724487f1fc101d6b83c383ff9cc90, <b219cdaea16b2f3e8e13a63662d462addd8a2cd0","fixed":"b219cdaea16b2f3e8e13a63662d462addd8a2cd0"}],"references":[{"url":"https://git.kernel.org/stable/c/17a540e65e567c8e4dd165a3ce5b592842ba5ab5","type":"other"},{"url":"https://git.kernel.org/stable/c/b219cdaea16b2f3e8e13a63662d462addd8a2cd0","type":"other"},{"url":"https://git.kernel.org/stable/c/77c9b481faacf46b9d9282ffaa71afbac7acf819","type":"other"},{"url":"https://git.kernel.org/stable/c/4f61ff2ebfb3d2967b83b6a4d456242244d5a61f","type":"other"},{"url":"https://git.kernel.org/stable/c/8ae1e7876107fbe7318ac5594b8bf2a887a9c578","type":"other"},{"url":"https://git.kernel.org/stable/c/50ae0a83625d08b4be4f047c293cf1149fe7ea98","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.139Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99422","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:48.015Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:53.445Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99422","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:35.041Z"}],"firstSeenAt":"2026-11-19T15:00:35.041Z","publishedAt":"2026-11-19T14:40:24.816Z","modifiedAt":"2026-11-23T08:17:45.663Z"}