{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "711fd82a6b6427d62d6db7bdcafae8d544a44f0f"
            },
            {
              "fixed": "22bba6b4a5254179f6982c3d97e3a657a84bfc31"
            },
            {
              "fixed": "c5e739d8ace3e3b923041844e07b68bacfe9192d"
            },
            {
              "fixed": "fc9577079df8a44ccbf39d2f06634017d286e4f0"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.12"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139087.json"
  },
  "details": "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 \u003c 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.",
  "id": "CVE-2026-139087",
  "modified": "2026-11-30T14:45:18.106879738Z",
  "published": "2026-11-30T13:31:27.484Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/22bba6b4a5254179f6982c3d97e3a657a84bfc31"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/711fd82a6b6427d62d6db7bdcafae8d544a44f0f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c5e739d8ace3e3b923041844e07b68bacfe9192d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fc9577079df8a44ccbf39d2f06634017d286e4f0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139087.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139087"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "minix: reject rmdir of a directory with a corrupted link count"
}