{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5d800f87d0a5ea1b156c47a4b9fd128479335153"
            },
            {
              "fixed": "f2c55a9b936da22525988d9040f528d6feb78359"
            },
            {
              "fixed": "30a140c9d479974021f5c3eecb64415c96419c3f"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.0.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-139317.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't saturate owner_refcnt on the last unpin\n\nbpf_local_storage_map_free() pins the owner with refcount_inc_not_zero()\nwhile it uncharges an element.  The pin counts when\nbpf_local_storage_destroy() could not get local_storage-\u003elock: destroy()\nthen goes on, drops the owner's reference and spins until the count is\nzero.  So the pin is the last reference whenever it is needed, and\nrefcount_dec() takes that for a bug: it warns \"decrement hit 0; leaking\nmemory\" and saturates the count.  Unless destroy() happens to read the\ncount between the two stores it spins for ever, under rcu_read_lock().\n\nDrop the pin with refcount_dec_and_test().",
  "id": "CVE-2026-139317",
  "modified": "2026-12-01T20:45:17.966051051Z",
  "published": "2026-11-30T13:33:38.718Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/30a140c9d479974021f5c3eecb64415c96419c3f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f2c55a9b936da22525988d9040f528d6feb78359"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139317.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139317"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "bpf: Don't saturate owner_refcnt on the last unpin"
}