CVE-2026-139312
publishedbpf: Fix NULL deref in the sk_storage map iterator
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0be08389c7f2f9db0194ee666d2e4870886e6ffb to < cf71608b8ac11bca93da9f961d88c27c5f07d918 · 0be08389c7f2f9db0194ee666d2e4870886e6ffb to < 6186c9711ac6fb984f6c2093c52bf4e827cc50b1 · 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 |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix NULL deref in the sk_storage map iterator bpf_sk_storage_map_seq_find_next() hands out an element only if its local_storage pointer is set. __bpf_sk_storage_map_seq_show() then reads the pointer a second time and dereferences it without a test. Since bpf_local_storage_destroy() unlinks the elements with bpf_selem_unlink_nofail(), the pointer is reset to NULL when the socket which owns the element is destroyed, so it can change between the two reads. Reading the iterator while sockets with an element in the map are closed ends in a NULL pointer dereference. The sockets need not belong to the reader: where a program gives every new socket an element, an unprivileged user who opens and closes sockets is enough. Skip such an element, as the TCP and UDP iterators skip a socket which has been unhashed.
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 | 0be08389c7f2f9db0194ee666d2e4870886e6ffb to < cf71608b8ac11bca93da9f961d88c27c5f07d918 (affected · git)0be08389c7f2f9db0194ee666d2e4870886e6ffb to < 6186c9711ac6fb984f6c2093c52bf4e827cc50b1 (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: Fix NULL deref in the sk_storage map iterator
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ada076c4decc97db0f5aa906d20b6c9876de28222695b1fc656f2554306e7f8e
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record