CVE-2026-139320

HighCVSS 7.8/10Last modified Dec 1, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Look at all 64 bits of a BPF_JSET mask on 32-bit

In the branch of a BPF_JSET which is taken, the verifier can learn something about the register only if the mask has a single bit: then this bit is set. regs_refine_cond_op() tests this with is_power_of_2(val) and then ORs val into var_off.

val is a u64, but is_power_of_2() takes an unsigned long. On a 32-bit kernel it only sees the lower half of the mask. For

if r1 & 0xffffffff80000000 goto l

which is a BPF_JSET | BPF_K with an immediate of 0x80000000, the lower half is a power of two. So the verifier takes all 33 bits for set at l, while the branch is taken if any of them is. A mask of 0x100000001 from a register does the same for bit 0.

The log of an i386 kernel, for r6 = bpf_get_prandom_u32() << 31:

3: (45) if r6 & 0x80000000 goto pc+2 from 3 to 6: R6=0xffffffff80000000 R10=fp0 6: (77) r6 >>= 63 ; R6=1

When the program runs, r6 >> 63 is 0.

>From then on the verifier works with known bits which the register does not have at run time. It accepts, for example, an offset into a map value which it derives from these bits and believes to be constant, and the program can access memory outside of the map value.

Count the bits of the whole value.

Only 32-bit kernels are affected. On a 64-bit kernel unsigned long holds the whole mask, and this patch changes nothing.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 960ea056561a08e2b837b2f02d22c53226414a84, < 5a9a6eb7bad37d72867734dc69f1b99a423cd50a; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 5cea952976eb9b0b2dcc630dc87e207359b1292f; >= 960ea056561a08e2b837b2f02d22c53226414a84, < a2c98b2a86b0f7011c9debf249208074bfb9c7f8; >= 960ea056561a08e2b837b2f02d22c53226414a84, < ee4f44e0e3c8125eebe9ac967b6984bc9253d489
LinuxLinux5.0

References

Timeline

Published
Nov 30, 2026
Last modified
Dec 1, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139321In the Linux kernel, the following vulnerability has been resolved: bpf: Forbid sleeping in bpf_find_vma() callbacks A sleepable program cCVE-2026-139322In the Linux kernel, the following vulnerability has been resolved: bpf: Reject sleepable programs for task_vma iterator A sleepable "iterCVE-2026-139323In the Linux kernel, the following vulnerability has been resolved: bpf: Don't hand out a linked element as extra element When htab_map_upCVE-2026-139324In the Linux kernel, the following vulnerability has been resolved: bpf: Don't leak the inode when token creation fails bpf_token_create()CVE-2026-139325In the Linux kernel, the following vulnerability has been resolved: bpf: Forbid sleeping in hash map for_each callbacks A sleepable prograCVE-2026-1393268.1In the Linux kernel, the following vulnerability has been resolved: bpf: Use the frame mem type in devmap egress XDP A devmap egress progrCVE-2026-139327In the Linux kernel, the following vulnerability has been resolved: bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields A BPFCVE-2026-139328In the Linux kernel, the following vulnerability has been resolved: sched_ext: Fix a bypassed task stalling on a cpu its scheduler has no cCVE-2026-139329In the Linux kernel, the following vulnerability has been resolved: ALSA: jack: Protect the index scan against control removal A control fCVE-2026-139335.3Insufficient policy enforcement in Passwords in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the rendeCVE-2026-139330In the Linux kernel, the following vulnerability has been resolved: dpll: zl3073x: do not offer 0 Hz as a supported pin frequency zl3073x_CVE-2026-139331In the Linux kernel, the following vulnerability has been resolved: bpf, x86: Pass a trampoline's stack arguments by the calling convention
CVE-2026-139320: High severity, CVSS 7.8 | Vulnix