{"api_version":"1","generated_at":"2026-12-02T08:01:09+00:00","cve":"CVE-2026-99639","urls":{"html":"https://cve.report/CVE-2026-99639","api":"https://cve.report/api/cve/CVE-2026-99639.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99639","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99639"},"summary":{"title":"ovl: fix whiteout creation in casefolded directories","description":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: fix whiteout creation in casefolded directories\n\nunlink and rmdir fail with EINVAL on an overlay with casefolded\n(case-insensitive) layers, if the name exists in a lower layer.\nCasefolded layers need CONFIG_UNICODE. Root can mount such an overlay,\nand so can an unprivileged user in a user namespace, with tmpfs layers.\n\nOverlayfs does not change a lower layer. To remove a name that exists\nthere, it hides the name with a marker file, a whiteout. It creates the\nwhiteout in the work directory, a scratch directory on the upper\nfilesystem, and renames it over the name in the upper directory:\n\n- ovl_whiteout() creates the whiteout with mknod, or as a hard link to\n  an earlier whiteout.\n- ovl_cleanup_and_whiteout() then prepares the rename with\n  start_renaming_two_dentries(), which returns -EINVAL if the source or\n  the target dentry is unhashed, that is, not in the dentry hash table.\n\nWith casefolded directories, both dentries can be unhashed:\n\n- The target. Lookup in a casefolded directory leaves a negative dentry\n  unhashed, so the rename target is unhashed if the name does not exist\n  in the upper directory.\n- The source, which is the new whiteout. tmpfs hashes a dentry when\n  mknod or link makes it positive, but ext4 does not, so on ext4 the\n  source is unhashed as well.\n\nThe cleanup after the failure also refuses an unhashed dentry, so on\next4 the whiteout is left behind in the work directory.\n\nReproduced with rm and rmdir on casefolded tmpfs and ext4 layers, also\nas uid 1000 in a user namespace.\n\nFix this by creating the whiteout with ovl_create_temp(), which repeats\nthe lookup if the new dentry is unhashed. Prepare the rename with\nstart_renaming_dentry(), which looks up the target name with the\ndirectories locked. The caller looked the name up without a lock, so\nreturn -ESTALE if the name now refers to a different inode.\n\n[amir: pass the name used for lookup instead of taking a name snapshot]","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:17:57","updated_at":"2026-11-20 06:17:57"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/48bd1823237fb076db6e109e35c59b1bc08f550a","name":"https://git.kernel.org/stable/c/48bd1823237fb076db6e109e35c59b1bc08f550a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4","name":"https://git.kernel.org/stable/c/e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99639","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99639","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa 48bd1823237fb076db6e109e35c59b1bc08f550a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99639","cve":"CVE-2026-99639","epss":"0.001560000","percentile":"0.047280000","score_date":"2026-11-22","updated_at":"2026-11-23 00:03:21"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/overlayfs/dir.c","fs/overlayfs/overlayfs.h","fs/overlayfs/readdir.c","fs/overlayfs/util.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"48bd1823237fb076db6e109e35c59b1bc08f550a","status":"affected","version":"833d2b3a072f7ff6005bf84c065c7cbda81a8aaa","versionType":"git"},{"lessThan":"e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4","status":"affected","version":"833d2b3a072f7ff6005bf84c065c7cbda81a8aaa","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/overlayfs/dir.c","fs/overlayfs/overlayfs.h","fs/overlayfs/readdir.c","fs/overlayfs/util.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.19"},{"lessThan":"6.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: fix whiteout creation in casefolded directories\n\nunlink and rmdir fail with EINVAL on an overlay with casefolded\n(case-insensitive) layers, if the name exists in a lower layer.\nCasefolded layers need CONFIG_UNICODE. Root can mount such an overlay,\nand so can an unprivileged user in a user namespace, with tmpfs layers.\n\nOverlayfs does not change a lower layer. To remove a name that exists\nthere, it hides the name with a marker file, a whiteout. It creates the\nwhiteout in the work directory, a scratch directory on the upper\nfilesystem, and renames it over the name in the upper directory:\n\n- ovl_whiteout() creates the whiteout with mknod, or as a hard link to\n  an earlier whiteout.\n- ovl_cleanup_and_whiteout() then prepares the rename with\n  start_renaming_two_dentries(), which returns -EINVAL if the source or\n  the target dentry is unhashed, that is, not in the dentry hash table.\n\nWith casefolded directories, both dentries can be unhashed:\n\n- The target. Lookup in a casefolded directory leaves a negative dentry\n  unhashed, so the rename target is unhashed if the name does not exist\n  in the upper directory.\n- The source, which is the new whiteout. tmpfs hashes a dentry when\n  mknod or link makes it positive, but ext4 does not, so on ext4 the\n  source is unhashed as well.\n\nThe cleanup after the failure also refuses an unhashed dentry, so on\next4 the whiteout is left behind in the work directory.\n\nReproduced with rm and rmdir on casefolded tmpfs and ext4 layers, also\nas uid 1000 in a user namespace.\n\nFix this by creating the whiteout with ovl_create_temp(), which repeats\nthe lookup if the new dentry is unhashed. Prepare the rename with\nstart_renaming_dentry(), which looks up the target name with the\ndirectories locked. The caller looked the name up without a lock, so\nreturn -ESTALE if the name now refers to a different inode.\n\n[amir: pass the name used for lookup instead of taking a name snapshot]"}],"providerMetadata":{"dateUpdated":"2026-11-20T05:49:55.329Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/48bd1823237fb076db6e109e35c59b1bc08f550a"},{"url":"https://git.kernel.org/stable/c/e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4"}],"title":"ovl: fix whiteout creation in casefolded directories","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99639","datePublished":"2026-11-20T05:49:55.329Z","dateReserved":"2026-09-25T10:25:14.426Z","dateUpdated":"2026-11-20T05:49:55.329Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:17:57","lastModifiedDate":"2026-11-20 06:17:57","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99639","Ordinal":"1","Title":"ovl: fix whiteout creation in casefolded directories","CVE":"CVE-2026-99639","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99639","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: fix whiteout creation in casefolded directories\n\nunlink and rmdir fail with EINVAL on an overlay with casefolded\n(case-insensitive) layers, if the name exists in a lower layer.\nCasefolded layers need CONFIG_UNICODE. Root can mount such an overlay,\nand so can an unprivileged user in a user namespace, with tmpfs layers.\n\nOverlayfs does not change a lower layer. To remove a name that exists\nthere, it hides the name with a marker file, a whiteout. It creates the\nwhiteout in the work directory, a scratch directory on the upper\nfilesystem, and renames it over the name in the upper directory:\n\n- ovl_whiteout() creates the whiteout with mknod, or as a hard link to\n  an earlier whiteout.\n- ovl_cleanup_and_whiteout() then prepares the rename with\n  start_renaming_two_dentries(), which returns -EINVAL if the source or\n  the target dentry is unhashed, that is, not in the dentry hash table.\n\nWith casefolded directories, both dentries can be unhashed:\n\n- The target. Lookup in a casefolded directory leaves a negative dentry\n  unhashed, so the rename target is unhashed if the name does not exist\n  in the upper directory.\n- The source, which is the new whiteout. tmpfs hashes a dentry when\n  mknod or link makes it positive, but ext4 does not, so on ext4 the\n  source is unhashed as well.\n\nThe cleanup after the failure also refuses an unhashed dentry, so on\next4 the whiteout is left behind in the work directory.\n\nReproduced with rm and rmdir on casefolded tmpfs and ext4 layers, also\nas uid 1000 in a user namespace.\n\nFix this by creating the whiteout with ovl_create_temp(), which repeats\nthe lookup if the new dentry is unhashed. Prepare the rename with\nstart_renaming_dentry(), which looks up the target name with the\ndirectories locked. The caller looked the name up without a lock, so\nreturn -ESTALE if the name now refers to a different inode.\n\n[amir: pass the name used for lookup instead of taking a name snapshot]","Type":"Description","Title":"ovl: fix whiteout creation in casefolded directories"}]}}}