{"id":"CVE-2026-139317","aliases":["CVE-2026-139317"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Don't saturate owner_refcnt on the last unpin","summary":"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->lock: 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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->lock: 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().","source":"cvelist"}],"published":"2026-11-30T13:33:38.718Z","modified":"2026-11-30T14:18:56.053Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5d800f87d0a5ea1b156c47a4b9fd128479335153","fixed":"f2c55a9b936da22525988d9040f528d6feb78359","status":"affected"},{"type":"git","introduced":"5d800f87d0a5ea1b156c47a4b9fd128479335153","fixed":"30a140c9d479974021f5c3eecb64415c96419c3f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.0","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f2c55a9b936da22525988d9040f528d6feb78359","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/30a140c9d479974021f5c3eecb64415c96419c3f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139317","url":"https://www.cve.org/CVERecord?id=CVE-2026-139317","licence":"CVE Terms of Use","modified":"2026-11-30T13:33:38.718Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139317","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139317","licence":"Public domain","modified":"2026-11-30T14:18:56.053Z"}],"updatedAt":"2026-11-30T14:33:14.332Z","epss":{"score":0.0019,"percentile":0.0906,"date":"2026-12-01T12:00:22.000Z"}}