{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "d25006523d0b9e49fd097b2e974e7c8c05bd7f54"
            },
            {
              "fixed": "719e0bfa146c6dded44f10a9c1c53890b658cfe2"
            },
            {
              "fixed": "6f7a95bd8c5a702737740feb8f1b50d1c4ea1062"
            },
            {
              "fixed": "6665347d26bf851df6793f4f3f9a7cc72a636917"
            },
            {
              "fixed": "5f391ea18c845d2989e6c63de7a9585271f23566"
            },
            {
              "fixed": "1224daa73cc19b6b9bc9f241af30bc9998063a3e"
            },
            {
              "fixed": "e6f6d475f5d8750bea7e8ab4e945654bc92283bd"
            },
            {
              "fixed": "1cd9c49962aa6b977b0f8e90b626a47534e8ec0d"
            },
            {
              "fixed": "814f5a53b4724798795b15690ff3d1c1d9ac1eb6"
            }
          ],
          "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.30"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "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-139510.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix link count underflow when removing corrupted directory\n\nWhen removing an empty directory with a corrupted link count (e.g.,\ni_nlink is 1 due to filesystem corruption), nilfs_rmdir() calls\ndrop_nlink() via nilfs_do_unlink() and then calls drop_nlink() again\non the directory inode.  This second call causes an underflow of\ni_nlink, triggering a kernel WARNING in drop_nlink().\n\nFix this issue by using clear_nlink() instead of drop_nlink() to\nfinalize the link count reset for the target directory in nilfs_rmdir().\nAdditionally, log a warning message when i_nlink is not 2 before\nremoving an empty directory to notify about the link count inconsistency.",
  "id": "CVE-2026-139510",
  "modified": "2026-11-30T14:45:41.165546571Z",
  "published": "2026-11-30T13:35:25.120Z",
  "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/1224daa73cc19b6b9bc9f241af30bc9998063a3e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1cd9c49962aa6b977b0f8e90b626a47534e8ec0d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5f391ea18c845d2989e6c63de7a9585271f23566"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6665347d26bf851df6793f4f3f9a7cc72a636917"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6f7a95bd8c5a702737740feb8f1b50d1c4ea1062"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/719e0bfa146c6dded44f10a9c1c53890b658cfe2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/814f5a53b4724798795b15690ff3d1c1d9ac1eb6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e6f6d475f5d8750bea7e8ab4e945654bc92283bd"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139510.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139510"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "nilfs2: fix link count underflow when removing corrupted directory"
}