{"id":"CVE-2026-139087","state":"PUBLISHED","title":"minix: reject rmdir of a directory with a corrupted link count","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nminix: reject rmdir of a directory with a corrupted link count\n\nminix_rmdir() calls minix_unlink(), which drops the victim's link\ncount once, and then drops it a second time for the \".\" entry. An\nimage where an empty directory has i_nlink < 2 makes the second drop\nhit drop_nlink() with i_nlink == 0:\n\n  WARNING: fs/inode.c:408 at drop_nlink\n   minix_rmdir+0xe9/0x150\n   vfs_rmdir\n   filename_rmdir\n   __do_sys_unlinkat\n\nThe parent's link count is already validated; do the same for the\ndirectory being removed and fail with -EFSCORRUPTED.","publishedAt":"2026-11-30T13:31:27.484Z","updatedAt":"2026-11-30T13:31:27.484Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"711fd82a6b6427d62d6db7bdcafae8d544a44f0f","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"22bba6b4a5254179f6982c3d97e3a657a84bfc31","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"c5e739d8ace3e3b923041844e07b68bacfe9192d","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fc9577079df8a44ccbf39d2f06634017d286e4f0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/minix/namei.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","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/minix/namei.c"]}],"references":["https://git.kernel.org/stable/c/711fd82a6b6427d62d6db7bdcafae8d544a44f0f","https://git.kernel.org/stable/c/22bba6b4a5254179f6982c3d97e3a657a84bfc31","https://git.kernel.org/stable/c/c5e739d8ace3e3b923041844e07b68bacfe9192d","https://git.kernel.org/stable/c/fc9577079df8a44ccbf39d2f06634017d286e4f0"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139087.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139087","state":"PUBLISHED","datePublished":"2026-11-30T13:31:27.484Z","dateUpdated":"2026-11-30T13:31:27.484Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.913Z"},"containers":{"cna":{"title":"minix: reject rmdir of a directory with a corrupted link count","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nminix: reject rmdir of a directory with a corrupted link count\n\nminix_rmdir() calls minix_unlink(), which drops the victim's link\ncount once, and then drops it a second time for the \".\" entry. An\nimage where an empty directory has i_nlink < 2 makes the second drop\nhit drop_nlink() with i_nlink == 0:\n\n  WARNING: fs/inode.c:408 at drop_nlink\n   minix_rmdir+0xe9/0x150\n   vfs_rmdir\n   filename_rmdir\n   __do_sys_unlinkat\n\nThe parent's link count is already validated; do the same for the\ndirectory being removed and fail with -EFSCORRUPTED."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"711fd82a6b6427d62d6db7bdcafae8d544a44f0f","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"22bba6b4a5254179f6982c3d97e3a657a84bfc31","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"c5e739d8ace3e3b923041844e07b68bacfe9192d","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fc9577079df8a44ccbf39d2f06634017d286e4f0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/minix/namei.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","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/minix/namei.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/711fd82a6b6427d62d6db7bdcafae8d544a44f0f"},{"url":"https://git.kernel.org/stable/c/22bba6b4a5254179f6982c3d97e3a657a84bfc31"},{"url":"https://git.kernel.org/stable/c/c5e739d8ace3e3b923041844e07b68bacfe9192d"},{"url":"https://git.kernel.org/stable/c/fc9577079df8a44ccbf39d2f06634017d286e4f0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:27.484Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}