{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52"
            },
            {
              "fixed": "831b4daf89279319de1f36fa9cf14e5de08a9b56"
            },
            {
              "fixed": "96ceee0dcea599a6c4f1e82cc048ddbcbd6e0363"
            },
            {
              "fixed": "d03eec2032df908aeeef06a0b442537edb1a4d30"
            },
            {
              "fixed": "8ec5dd1b933d3e92de7ef6149ccae118bfd35907"
            },
            {
              "fixed": "ac163d9cbbbcf9e87681e73fbe5adeffeb679a43"
            },
            {
              "fixed": "582a0631a00df91e6fc3bbdfc21dfbc77c9bb825"
            },
            {
              "fixed": "d0613a385afd4891383540edecf5a9072820ed78"
            },
            {
              "fixed": "ff1227f70eead8704ecfec69259fb4c041f92cda"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "c23f3a9fa7826af0465b9408b186f6b555991890"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "28cd54f27d309bd65db8ff4b8e6275345287484c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "ec7cae16b37ab478d6d7e33e8563b24ca189e6cf"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "d26f2dfa556323787ee1ebd5d03aeaa8650c7404"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "52e87609d9d3ea34cadb5676e8ea85d025ac9632"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "7bb9e4a06e12583f1418b669dc45bb3ee84496c6"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.2.68"
            },
            {
              "fixed": "3.3"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "3.4.107"
            },
            {
              "fixed": "3.5"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "3.10.69"
            },
            {
              "fixed": "3.11"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "3.12.38"
            },
            {
              "fixed": "3.13"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "3.14.33"
            },
            {
              "fixed": "3.15"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "3.18.7"
            },
            {
              "fixed": "3.19"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "3.19.0"
            },
            {
              "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.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138983.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix deadlock between nilfs_evict_inode() and find_inode()\n\nSyzbot reported a deadlock between nilfs_evict_inode(), executed via\nan asynchronous workqueue (kworker) as:\n\n  process_one_work()\n    process_scheduled_works()\n      nilfs_iput_work_func()\n        nilfs_dispose_list()\n          iput()\n            iput_final()\n              evict()\n                s_op-\u003eevict_inode()\n                  nilfs_evict_inode()\n\nand find_inode(), called via\n\n  nilfs_mkdir()\n    nilfs_new_inode()\n      nilfs_insert_inode_locked()\n        insert_inode_locked4()\n          inode_insert5()\n            find_inode()\n\nWhen an inode is deleted (i_nlink == 0), nilfs_evict_inode() clears its\nifile bitmap entry and then synchronously triggers the log writer via\nnilfs_transaction_commit() if IS_SYNC(inode) is true.\n\nIf a concurrent directory creation via nilfs_new_inode() attempts to\nallocate the same newly freed inode number, however, find_inode() called\njust before inserting it into the inode hash, blocks waiting for the old\ninode's evict() to complete.\n\nMeanwhile, the synchronous log writer invoked from nilfs_evict_inode()\ntries to acquire a write lock on 'ns_segctor_sem' which is read locked\nby the caller of nilfs_new_inode() (in this case, nilfs_mkdir()),\nresulting in a deadlock.\n\nThe synchronous log writer invocation from nilfs_evict_inode() is a\nlegacy artifact; it is no longer necessary because the call itself\n(triggered by iput()) is now handled asynchronously with a kworker\nif i_nlink == 0.  It merely increases the risk of deadlock.\n\nFix this deadlock by removing the synchronous log writer trigger from\nnilfs_evict_inode().",
  "id": "CVE-2026-138983",
  "modified": "2026-11-30T14:45:28.001311242Z",
  "published": "2026-11-30T13:26:47.551Z",
  "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/582a0631a00df91e6fc3bbdfc21dfbc77c9bb825"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/831b4daf89279319de1f36fa9cf14e5de08a9b56"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8ec5dd1b933d3e92de7ef6149ccae118bfd35907"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/96ceee0dcea599a6c4f1e82cc048ddbcbd6e0363"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ac163d9cbbbcf9e87681e73fbe5adeffeb679a43"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d03eec2032df908aeeef06a0b442537edb1a4d30"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d0613a385afd4891383540edecf5a9072820ed78"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ff1227f70eead8704ecfec69259fb4c041f92cda"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138983.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138983"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "nilfs2: fix deadlock between nilfs_evict_inode() and find_inode()"
}