{"id":"CVE-2026-139087","aliases":["CVE-2026-139087"],"related":[],"kind":"vulnerability","state":"published","title":"minix: reject rmdir of a directory with a corrupted link count","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:31:27.484Z","modified":"2026-11-30T14:18:16.573Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"711fd82a6b6427d62d6db7bdcafae8d544a44f0f","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"22bba6b4a5254179f6982c3d97e3a657a84bfc31","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"c5e739d8ace3e3b923041844e07b68bacfe9192d","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"fc9577079df8a44ccbf39d2f06634017d286e4f0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/711fd82a6b6427d62d6db7bdcafae8d544a44f0f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22bba6b4a5254179f6982c3d97e3a657a84bfc31","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5e739d8ace3e3b923041844e07b68bacfe9192d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fc9577079df8a44ccbf39d2f06634017d286e4f0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139087","url":"https://www.cve.org/CVERecord?id=CVE-2026-139087","licence":"CVE Terms of Use","modified":"2026-11-30T13:31:27.484Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139087","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139087","licence":"Public domain","modified":"2026-11-30T14:18:16.573Z"}],"updatedAt":"2026-11-30T14:32:42.566Z","epss":{"score":0.00353,"percentile":0.30943,"date":"2026-12-01T12:00:22.000Z"}}