CVE-2026-139618
publishedbpf: Fix uninit read for helper mem args on partially spilled slots
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux354e8f1970f821d4952458f77b1ab6c3eb24d530 to < 169884f932924796d6947fc6adcabd5fc2d92575 · 354e8f1970f821d4952458f77b1ab6c3eb24d530 to < e81530cbce0b751936d962cabe43a8436aaae109 · 354e8f1970f821d4952458f77b1ab6c3eb24d530 to < f3bd942493c912fd84a5c3fe57b7ea31083988b6 · 354e8f1970f821d4952458f77b1ab6c3eb24d530 to < b3861495d2b2f7459cddf49e63fa0758ba430583 · 8de8c4a25ed8924b09cf8cd542feea854d5ee5bf · 7b86f9ab56924ca56cde927d461165127b6b472e · 5.10.168 to < 5.11 · 5.15.93 to < 5.16 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.16 (affected) · 0 to < 5.16 (unaffected · semver) · 6.12.120 through 6.12.* (unaffected · semver) · 6.18.66 through 6.18.* (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: Fix uninit read for helper mem args on partially spilled slots check_stack_range_initialized() takes the spilled register path when bpf_is_spilled_reg(ss) holds, which, however, only looks at the last byte of the slot. Hence, a partially spilled scalar (on the lower part) bypasses the check and the following loads: 0: (b7) r1 = 1 ; R1=1 1: (63) *(u32 *)(r10 -8) = r1 ; R1=1 R10=fp0 fp-8=????1 2: (18) r1 = 0x0 ; R1=map_ptr(map=rb,ks=0,vs=0) 4: (bf) r2 = r10 ; R2=fp0 R10=fp0 5: (07) r2 += -8 ; R2=fp-8 6: (b7) r3 = 8 ; R3=8 7: (b7) r4 = 0 ; R4=0 8: (85) call bpf_ringbuf_output#130 ... When executed, it dumps the uninit four bytes: RINGBUF: 01 00 00 00 ff ff ff ff This is the same root cause as the non-fetch atomic case fixed in commit 5a84b4424db8 ("bpf: Fix uninit read for non-fetch atomics on partially spilled slots"). Fix by only taking the spilled register path for the bytes marked STACK_SPILL, so the rest of the slot goes through the usual checks.
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 | 354e8f1970f821d4952458f77b1ab6c3eb24d530 to < 169884f932924796d6947fc6adcabd5fc2d92575 (affected · git)354e8f1970f821d4952458f77b1ab6c3eb24d530 to < e81530cbce0b751936d962cabe43a8436aaae109 (affected · git)354e8f1970f821d4952458f77b1ab6c3eb24d530 to < f3bd942493c912fd84a5c3fe57b7ea31083988b6 (affected · git)354e8f1970f821d4952458f77b1ab6c3eb24d530 to < b3861495d2b2f7459cddf49e63fa0758ba430583 (affected · git)8de8c4a25ed8924b09cf8cd542feea854d5ee5bf (affected · git)7b86f9ab56924ca56cde927d461165127b6b472e (affected · git)5.10.168 to < 5.11 (affected · semver)5.15.93 to < 5.16 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 5.16 (affected)0 to < 5.16 (unaffected · semver)6.12.120 through 6.12.* (unaffected · semver)6.18.66 through 6.18.* (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
4Provider assertions
1Linux · cna
bpf: Fix uninit read for helper mem args on partially spilled slots
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 33ac38110cd2affc92f4513a5e83a41b9b3d5282cdaa76aa7477b02785c85f34
- Ingested
- 30 Nov 2026, 13:42:24 UTC
- Source record
- Official CVE record