{"id":"CVE-2026-99423","state":"PUBLISHED","title":"ovl: take a snapshot of the name for copy up","description":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: take a snapshot of the name for copy up\n\nThe copy up of a directory reads a freed dentry name when a lookup\nmoves the directory at the same time.\n\nA pointer to the name of a dentry is only valid while something stops\na move of the dentry. ovl_do_copy_up() keeps a plain copy of\nc->dentry->d_name in c->destname, and ovl_copy_up_start() only keeps\novl_rename() away. When a lookup finds the same directory under another\nname after a change to the lower layer, d_splice_alias() moves the\ndentry and frees its external name.\n\nWith a delay in ovl_do_copy_up(), a chmod of a lower-only directory with\na 60 byte name raced with a rename of that directory in the lower layer\nand a stat of the new name, and KASAN reported a use-after-free in\nlookup_noperm_common().\n\nFix this by using take_dentry_name_snapshot() for c->destname.","publishedAt":"2026-11-19T14:40:26.174Z","updatedAt":"2026-11-19T14:40:26.174Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"829c28be9bb9a05aa7eeb8a68a4536cca2d3d694","status":"affected","lessThan":"9d844cf28544bfb3e121d31c68f3062bb237022e","versionType":"git"},{"version":"829c28be9bb9a05aa7eeb8a68a4536cca2d3d694","status":"affected","lessThan":"c7e2808209899b2b94dbbcc3b28d44f6c065df62","versionType":"git"},{"version":"829c28be9bb9a05aa7eeb8a68a4536cca2d3d694","status":"affected","lessThan":"b2d4777172bea58a521358f7d9b871cffe4d5751","versionType":"git"},{"version":"829c28be9bb9a05aa7eeb8a68a4536cca2d3d694","status":"affected","lessThan":"65bf000962a33ec9d2488e4e1797b6cf630abcbb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/overlayfs/copy_up.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.16","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/overlayfs/copy_up.c"]}],"references":["https://git.kernel.org/stable/c/9d844cf28544bfb3e121d31c68f3062bb237022e","https://git.kernel.org/stable/c/c7e2808209899b2b94dbbcc3b28d44f6c065df62","https://git.kernel.org/stable/c/b2d4777172bea58a521358f7d9b871cffe4d5751","https://git.kernel.org/stable/c/65bf000962a33ec9d2488e4e1797b6cf630abcbb"],"weaknesses":[],"ingestedAt":"2026-11-19T14:48:06.147Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99423.json","commit":"783f6d4140a34eaf92c5bfee971cfe497fa6394e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99423","state":"PUBLISHED","datePublished":"2026-11-19T14:40:26.174Z","dateUpdated":"2026-11-19T14:40:26.174Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.414Z"},"containers":{"cna":{"title":"ovl: take a snapshot of the name for copy up","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: take a snapshot of the name for copy up\n\nThe copy up of a directory reads a freed dentry name when a lookup\nmoves the directory at the same time.\n\nA pointer to the name of a dentry is only valid while something stops\na move of the dentry. ovl_do_copy_up() keeps a plain copy of\nc->dentry->d_name in c->destname, and ovl_copy_up_start() only keeps\novl_rename() away. When a lookup finds the same directory under another\nname after a change to the lower layer, d_splice_alias() moves the\ndentry and frees its external name.\n\nWith a delay in ovl_do_copy_up(), a chmod of a lower-only directory with\na 60 byte name raced with a rename of that directory in the lower layer\nand a stat of the new name, and KASAN reported a use-after-free in\nlookup_noperm_common().\n\nFix this by using take_dentry_name_snapshot() for c->destname."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"829c28be9bb9a05aa7eeb8a68a4536cca2d3d694","status":"affected","lessThan":"9d844cf28544bfb3e121d31c68f3062bb237022e","versionType":"git"},{"version":"829c28be9bb9a05aa7eeb8a68a4536cca2d3d694","status":"affected","lessThan":"c7e2808209899b2b94dbbcc3b28d44f6c065df62","versionType":"git"},{"version":"829c28be9bb9a05aa7eeb8a68a4536cca2d3d694","status":"affected","lessThan":"b2d4777172bea58a521358f7d9b871cffe4d5751","versionType":"git"},{"version":"829c28be9bb9a05aa7eeb8a68a4536cca2d3d694","status":"affected","lessThan":"65bf000962a33ec9d2488e4e1797b6cf630abcbb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/overlayfs/copy_up.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.16","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/overlayfs/copy_up.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9d844cf28544bfb3e121d31c68f3062bb237022e"},{"url":"https://git.kernel.org/stable/c/c7e2808209899b2b94dbbcc3b28d44f6c065df62"},{"url":"https://git.kernel.org/stable/c/b2d4777172bea58a521358f7d9b871cffe4d5751"},{"url":"https://git.kernel.org/stable/c/65bf000962a33ec9d2488e4e1797b6cf630abcbb"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:40:26.174Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}