{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "981bec8f698ba19a4d983016c6ccdde30502d07e"
            },
            {
              "fixed": "bcd2e35432a433b98d5ef9817b51657dd8ef1963"
            },
            {
              "fixed": "f52b699c88634d0161c97247e0f791a840eb868d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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-139324.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't leak the inode when token creation fails\n\nbpf_token_create() allocates a bpffs inode and hands it to\nalloc_file_pseudo().  The inode reference only moves to the new file when\nthat call succeeds: alloc_file_pseudo() leaves the caller's reference alone\non failure, and FD_PREPARE() does not even evaluate the file expression\nwhen it cannot get a descriptor.\n\nBefore the conversion to FD_PREPARE() the error path did iput(inode).  The\nconversion dropped it, so each BPF_TOKEN_CREATE that fails with -EMFILE,\n-ENFILE or -ENOMEM at this point leaks an inode.  A task that is allowed to\ncreate tokens can hit this at will by lowering RLIMIT_NOFILE, and the\nleaked inodes make umount of that bpffs instance complain about busy\ninodes.\n\nPut the inode again if no file was created.",
  "id": "CVE-2026-139324",
  "modified": "2026-12-01T20:45:29.270824598Z",
  "published": "2026-11-30T13:33:42.631Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bcd2e35432a433b98d5ef9817b51657dd8ef1963"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f52b699c88634d0161c97247e0f791a840eb868d"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139324.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139324"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "bpf: Don't leak the inode when token creation fails"
}