# CVE-2026-139317: bpf: Don't saturate owner_refcnt on the last unpin

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-11-30T13:33:38.718Z
- Modified: 2026-11-30T14:18:56.053Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Don't saturate owner_refcnt on the last unpin

bpf_local_storage_map_free() pins the owner with refcount_inc_not_zero()
while it uncharges an element.  The pin counts when
bpf_local_storage_destroy() could not get local_storage->lock: destroy()
then goes on, drops the owner's reference and spins until the count is
zero.  So the pin is the last reference whenever it is needed, and
refcount_dec() takes that for a bug: it warns "decrement hit 0; leaking
memory" and saturates the count.  Unless destroy() happens to read the
count between the two stores it spins for ever, under rcu_read_lock().

Drop the pin with refcount_dec_and_test().

(As written by CVE List.)

## Affected

- Linux Linux: from 5d800f87d0a5ea1b156c47a4b9fd128479335153 before f2c55a9b936da22525988d9040f528d6feb78359; from 5d800f87d0a5ea1b156c47a4b9fd128479335153 before 30a140c9d479974021f5c3eecb64415c96419c3f; 7.0 (not affected: before 7.0; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/f2c55a9b936da22525988d9040f528d6feb78359>
- <https://git.kernel.org/stable/c/30a140c9d479974021f5c3eecb64415c96419c3f>

## Sources

- CVE List: [CVE-2026-139317](https://www.cve.org/CVERecord?id=CVE-2026-139317), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139317](https://nvd.nist.gov/vuln/detail/CVE-2026-139317), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139317 · Whole record: https://cve.day/CVE-2026-139317.json · Rebuilt by cve.day 2026-11-30T14:33:14.332Z
