{"id":"CVE-2026-142810","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T04:18:15.267","lastModified":"2026-12-03T04:18:15.267","vulnStatus":"Received","cveTags":[],"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":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["fs/overlayfs/inode.c","fs/overlayfs/namei.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"16754d61dc69cb4550225a967a2639809226de42","lessThan":"6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8","versionType":"git","status":"affected"},{"version":"16754d61dc69cb4550225a967a2639809226de42","lessThan":"d3cd02c8c6917f36f635d82575a9b206531bbfea","versionType":"git","status":"affected"},{"version":"16754d61dc69cb4550225a967a2639809226de42","lessThan":"1d27da7de3f74405b1de85ad26c5ea90f826114b","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["fs/overlayfs/inode.c","fs/overlayfs/namei.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.18","status":"affected"},{"version":"0","lessThan":"6.18","versionType":"semver","status":"unaffected"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/1d27da7de3f74405b1de85ad26c5ea90f826114b","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/d3cd02c8c6917f36f635d82575a9b206531bbfea","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}