{"id":"CVE-2026-139620","state":"PUBLISHED","title":"bpf: Fix uninit read for non-fetch atomics on partially spilled slots","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix uninit read for non-fetch atomics on partially spilled slots\n\ncheck_stack_read_fixed_off() skips partial spill checks for non-fetch\natomics; the following prog can be loaded:\n\n0: (b7) r1 = 1                        ; R1=1\n1: (63) *(u32 *)(r10 -8) = r1         ; R1=1 R10=fp0 fp-8=????1\n2: (db) lock *(u64 *)(r10 -8) += r1   ; R1=1 R10=fp0 fp-8=mmmmmmmm\n3: (79) r0 = *(u64 *)(r10 -8)         ; R0=scalar() R10=fp0 fp-8=mmmmmmmm\n4: (77) r0 >>= 32                     ; R0=scalar(smin=0,smax=umax=0xffffffff,var_off=(0x0; 0xffffffff))\n5: (95) exit\n\nWhen test run:\n\tretval=4294967295\n\nNote fp-8 is ????1 at #1, yet it becomes fp-8=mmmmmmmm after the\nnon-fetching atomic add at #2; hence the high 32 bits are leaked.\n\nFix by applying the partial load check; after the patch, the\nprog is rejected:\n\nVerification failed: Memory Safety: Uninitialized stack read\n\nReason:\n  This rejected read uses 8 bytes at stack offset -8, but byte 4 in that range is uninitialized on\n  this path. Programs loaded with CAP_PERFMON can be allowed to read uninitialized stack bytes, but\n  this program is being rejected without that allowance.\n\nAt:\n  ...\n      0 | (b7) r1 = 1\n      1 | (63) *(u32 *)(r10 -8) = r1\n  >>> 2 | (db) lock *(u64 *)(r10 -8) += r1\n      3 | (79) r0 = *(u64 *)(r10 -8)\n      4 | (77) r0 >>= 32\n\nThis affects CAP_BPF only.","publishedAt":"2026-11-30T13:36:26.079Z","updatedAt":"2026-11-30T13:36:26.079Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"354e8f1970f821d4952458f77b1ab6c3eb24d530","status":"affected","lessThan":"38a9243936ffec136ea1f2fc7747b7ebce190fa7","versionType":"git"},{"version":"354e8f1970f821d4952458f77b1ab6c3eb24d530","status":"affected","lessThan":"a2021a80256fe24a2146718033600b3a19fb1f24","versionType":"git"},{"version":"354e8f1970f821d4952458f77b1ab6c3eb24d530","status":"affected","lessThan":"d0abc2bedda3d901985d5be62cab8c16f796c35e","versionType":"git"},{"version":"354e8f1970f821d4952458f77b1ab6c3eb24d530","status":"affected","lessThan":"5a84b4424db8ae07f0ac682ab031c37a91dce50b","versionType":"git"},{"version":"8de8c4a25ed8924b09cf8cd542feea854d5ee5bf","status":"affected","versionType":"git"},{"version":"7b86f9ab56924ca56cde927d461165127b6b472e","status":"affected","versionType":"git"},{"version":"5.10.168","status":"affected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.93","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]}],"references":["https://git.kernel.org/stable/c/38a9243936ffec136ea1f2fc7747b7ebce190fa7","https://git.kernel.org/stable/c/a2021a80256fe24a2146718033600b3a19fb1f24","https://git.kernel.org/stable/c/d0abc2bedda3d901985d5be62cab8c16f796c35e","https://git.kernel.org/stable/c/5a84b4424db8ae07f0ac682ab031c37a91dce50b"],"weaknesses":[],"ingestedAt":"2026-11-30T13:52:04.503Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139620.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139620","state":"PUBLISHED","datePublished":"2026-11-30T13:36:26.079Z","dateUpdated":"2026-11-30T13:36:26.079Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.944Z"},"containers":{"cna":{"title":"bpf: Fix uninit read for non-fetch atomics on partially spilled slots","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix uninit read for non-fetch atomics on partially spilled slots\n\ncheck_stack_read_fixed_off() skips partial spill checks for non-fetch\natomics; the following prog can be loaded:\n\n0: (b7) r1 = 1                        ; R1=1\n1: (63) *(u32 *)(r10 -8) = r1         ; R1=1 R10=fp0 fp-8=????1\n2: (db) lock *(u64 *)(r10 -8) += r1   ; R1=1 R10=fp0 fp-8=mmmmmmmm\n3: (79) r0 = *(u64 *)(r10 -8)         ; R0=scalar() R10=fp0 fp-8=mmmmmmmm\n4: (77) r0 >>= 32                     ; R0=scalar(smin=0,smax=umax=0xffffffff,var_off=(0x0; 0xffffffff))\n5: (95) exit\n\nWhen test run:\n\tretval=4294967295\n\nNote fp-8 is ????1 at #1, yet it becomes fp-8=mmmmmmmm after the\nnon-fetching atomic add at #2; hence the high 32 bits are leaked.\n\nFix by applying the partial load check; after the patch, the\nprog is rejected:\n\nVerification failed: Memory Safety: Uninitialized stack read\n\nReason:\n  This rejected read uses 8 bytes at stack offset -8, but byte 4 in that range is uninitialized on\n  this path. Programs loaded with CAP_PERFMON can be allowed to read uninitialized stack bytes, but\n  this program is being rejected without that allowance.\n\nAt:\n  ...\n      0 | (b7) r1 = 1\n      1 | (63) *(u32 *)(r10 -8) = r1\n  >>> 2 | (db) lock *(u64 *)(r10 -8) += r1\n      3 | (79) r0 = *(u64 *)(r10 -8)\n      4 | (77) r0 >>= 32\n\nThis affects CAP_BPF only."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"354e8f1970f821d4952458f77b1ab6c3eb24d530","status":"affected","lessThan":"38a9243936ffec136ea1f2fc7747b7ebce190fa7","versionType":"git"},{"version":"354e8f1970f821d4952458f77b1ab6c3eb24d530","status":"affected","lessThan":"a2021a80256fe24a2146718033600b3a19fb1f24","versionType":"git"},{"version":"354e8f1970f821d4952458f77b1ab6c3eb24d530","status":"affected","lessThan":"d0abc2bedda3d901985d5be62cab8c16f796c35e","versionType":"git"},{"version":"354e8f1970f821d4952458f77b1ab6c3eb24d530","status":"affected","lessThan":"5a84b4424db8ae07f0ac682ab031c37a91dce50b","versionType":"git"},{"version":"8de8c4a25ed8924b09cf8cd542feea854d5ee5bf","status":"affected","versionType":"git"},{"version":"7b86f9ab56924ca56cde927d461165127b6b472e","status":"affected","versionType":"git"},{"version":"5.10.168","status":"affected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.93","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/verifier.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/38a9243936ffec136ea1f2fc7747b7ebce190fa7"},{"url":"https://git.kernel.org/stable/c/a2021a80256fe24a2146718033600b3a19fb1f24"},{"url":"https://git.kernel.org/stable/c/d0abc2bedda3d901985d5be62cab8c16f796c35e"},{"url":"https://git.kernel.org/stable/c/5a84b4424db8ae07f0ac682ab031c37a91dce50b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:36:26.079Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.168"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.93"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}