CVE-2026-139317
publishedbpf: Don't saturate owner_refcnt on the last unpin
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux5d800f87d0a5ea1b156c47a4b9fd128479335153 to < f2c55a9b936da22525988d9040f528d6feb78359 · 5d800f87d0a5ea1b156c47a4b9fd128479335153 to < 30a140c9d479974021f5c3eecb64415c96419c3f · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.0 (affected) · 0 to < 7.0 (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | 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().
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 5d800f87d0a5ea1b156c47a4b9fd128479335153 to < f2c55a9b936da22525988d9040f528d6feb78359 (affected · git)5d800f87d0a5ea1b156c47a4b9fd128479335153 to < 30a140c9d479974021f5c3eecb64415c96419c3f (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.0 (affected)0 to < 7.0 (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
bpf: Don't saturate owner_refcnt on the last unpin
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cceaacbb6fef8c4ee83c680c4791dcf81b6a5299d4c99ee5b6ec714e171d73b9
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record