{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142810","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.330Z","datePublished":"2026-12-03T03:17:42.224Z","dateUpdated":"2026-12-03T03:17:42.224Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-03T03:17:42.224Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: check the casefold flag of directories only\n\nOn an overlay over casefolded (case-insensitive) directories, every\nlookup of a file that is not a directory fails with EREMOTE, and the\nfirst file create triggers a kernel warning. No privilege is needed: an\nunprivileged user can cause both in a user namespace, with the layers on\na tmpfs that they have mounted with the casefold option.\n\nSome filesystems support casefolding, which is case-insensitive name\nlookup. It is enabled per directory, and the inode of a casefolded\ndirectory has the S_CASEFOLD flag.\n\noverlayfs accepts layers on a filesystem that supports casefolding as\nlong as casefolding is enabled on every directory of the layers, or on\nnone. The mount records which of the two applies in ofs->casefold.\novl_lookup_single() compares the S_CASEFOLD flag of each file that it\nfinds against ofs->casefold and returns -EREMOTE on a mismatch.\n\nFilesystems only set S_CASEFOLD on directories, so with casefolded\nlayers a regular file, a symlink or a special file never matches and its\nlookup fails.\n\novl_get_inode() does the same comparison in a WARN_ON_ONCE() for each\nnew overlay inode. A failed lookup never gets that far, so it is the\nfirst file create that trips the warning.\n\nReproduced on an overlay over casefolded tmpfs or ext4 directories, with\nstat() of a regular file, a symlink and a FIFO, and with a file create:\neach stat() failed with EREMOTE. For an unprivileged user in a user\nnamespace, on tmpfs, stat() of a regular file failed in the same way,\nand the file create triggered the warning.\n\nFix this by limiting both checks to directories."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/overlayfs/inode.c","fs/overlayfs/namei.c"],"versions":[{"version":"16754d61dc69cb4550225a967a2639809226de42","lessThan":"6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8","status":"affected","versionType":"git"},{"version":"16754d61dc69cb4550225a967a2639809226de42","lessThan":"d3cd02c8c6917f36f635d82575a9b206531bbfea","status":"affected","versionType":"git"},{"version":"16754d61dc69cb4550225a967a2639809226de42","lessThan":"1d27da7de3f74405b1de85ad26c5ea90f826114b","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/overlayfs/inode.c","fs/overlayfs/namei.c"],"versions":[{"version":"6.18","status":"affected"},{"version":"0","lessThan":"6.18","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8"},{"url":"https://git.kernel.org/stable/c/d3cd02c8c6917f36f635d82575a9b206531bbfea"},{"url":"https://git.kernel.org/stable/c/1d27da7de3f74405b1de85ad26c5ea90f826114b"}],"title":"ovl: check the casefold flag of directories only","x_generator":{"engine":"bippy-1.2.0"}}}}