CVE-2026-139620
publishedbpf: Fix uninit read for non-fetch atomics on partially spilled slots
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux354e8f1970f821d4952458f77b1ab6c3eb24d530 to < 38a9243936ffec136ea1f2fc7747b7ebce190fa7 · 354e8f1970f821d4952458f77b1ab6c3eb24d530 to < a2021a80256fe24a2146718033600b3a19fb1f24 · 354e8f1970f821d4952458f77b1ab6c3eb24d530 to < d0abc2bedda3d901985d5be62cab8c16f796c35e · 354e8f1970f821d4952458f77b1ab6c3eb24d530 to < 5a84b4424db8ae07f0ac682ab031c37a91dce50b · 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 non-fetch atomics on partially spilled slots check_stack_read_fixed_off() skips partial spill checks for non-fetch atomics; the following prog can be loaded: 0: (b7) r1 = 1 ; R1=1 1: (63) *(u32 *)(r10 -8) = r1 ; R1=1 R10=fp0 fp-8=????1 2: (db) lock *(u64 *)(r10 -8) += r1 ; R1=1 R10=fp0 fp-8=mmmmmmmm 3: (79) r0 = *(u64 *)(r10 -8) ; R0=scalar() R10=fp0 fp-8=mmmmmmmm 4: (77) r0 >>= 32 ; R0=scalar(smin=0,smax=umax=0xffffffff,var_off=(0x0; 0xffffffff)) 5: (95) exit When test run: retval=4294967295 Note fp-8 is ????1 at #1, yet it becomes fp-8=mmmmmmmm after the non-fetching atomic add at #2; hence the high 32 bits are leaked. Fix by applying the partial load check; after the patch, the prog is rejected: Verification failed: Memory Safety: Uninitialized stack read Reason: This rejected read uses 8 bytes at stack offset -8, but byte 4 in that range is uninitialized on this path. Programs loaded with CAP_PERFMON can be allowed to read uninitialized stack bytes, but this program is being rejected without that allowance. At: ... 0 | (b7) r1 = 1 1 | (63) *(u32 *)(r10 -8) = r1 >>> 2 | (db) lock *(u64 *)(r10 -8) += r1 3 | (79) r0 = *(u64 *)(r10 -8) 4 | (77) r0 >>= 32 This affects CAP_BPF only.
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 < 38a9243936ffec136ea1f2fc7747b7ebce190fa7 (affected · git)354e8f1970f821d4952458f77b1ab6c3eb24d530 to < a2021a80256fe24a2146718033600b3a19fb1f24 (affected · git)354e8f1970f821d4952458f77b1ab6c3eb24d530 to < d0abc2bedda3d901985d5be62cab8c16f796c35e (affected · git)354e8f1970f821d4952458f77b1ab6c3eb24d530 to < 5a84b4424db8ae07f0ac682ab031c37a91dce50b (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 non-fetch atomics on partially spilled slots
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 585c6df87d8475dc70fb11cc2b15b4cde6bbb1dbfb7d7ab65012aafc76151e10
- Ingested
- 30 Nov 2026, 13:42:24 UTC
- Source record
- Official CVE record