Kernel Kit / Infix / v26.10.0latest
CVE-2026-98816
—unknownlinux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases
Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach linux · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
bpf: Fix overflow of jump offset in constant blinding
bpf_jit_blind_insn() rewrites 'if rX op imm goto off' into:
AX = imm ^ rnd AX ^= rnd if rX op AX goto off
and subtracts 2 from off when the jump is backward. off is s16, so -32767 and -32768 wrap and the jump goes 32767 insns forward, past the end of the prog. The jump is inside the patch, hence bpf_adj_branches() doesn't check it. The kernel crashes when such prog runs with bpf_jit_harden=2.
Return -ERANGE in such case. bpf_jit_blind_constants() fails the same way when blinding of other insns moves a jump out of range.
Published 2026-10-18NVD
The build is affected but not exposed: the unfixed constant-blinding code is compiled into the x86_64 kernel, yet it only runs when net.core.bpf_jit_harden is non-zero, and nothing in the product sets it.
bpf_jit_blind_insn() in kernel/bpf/core.c still does off -= 2 on an s16 with no range check or -ERANGE return, and CONFIG_BPF_JIT=y and CONFIG_BPF_SYSCALL=y are set. None of the 139 applied patches touches BPF.
The sysctl defaults to 0, no file in the rootfs overlay or src/confd/ sets it, and I found no YANG node or CLI command for it. Reaching the bug needs a root shell (or equivalent CAP_BPF/CAP_SYS_ADMIN context) to write /proc/sys/net/core/bpf_jit_harden (the CVE's crash case is =2) and then load a crafted eBPF program with a backward conditional jump of offset -32767 or -32768. It is not reachable from a network interface.
Evidence 11
`bpf_jit_blind_insn()` JMP case: `off = from->off; if (off < 0) off -= 2;` on an `s16` with no overflow check and no `-ERANGE` return, so the vulnerable code is present.
output/build/linux-6.18.60/kernel/bpf/core.c:1410-1416
The JMP32 case has the same unchecked `off -= 2`.
output/build/linux-6.18.60/kernel/bpf/core.c:1430-1433
`bpf_jit_blind_constants()` treats the return of `bpf_jit_blind_insn()` only as a rewritten-instruction count; there is no error path for an out-of-range jump, so the fix is absent.
output/build/linux-6.18.60/kernel/bpf/core.c:1569-1582
`CONFIG_BPF_SYSCALL=y`, `CONFIG_BPF_JIT=y`, `CONFIG_BPF_JIT_DEFAULT_ON=y`, `CONFIG_BPF_JIT_ALWAYS_ON` not set, `CONFIG_BPF_UNPRIV_DEFAULT_OFF=y`: the JIT and blinding code are built, and unprivileged eBPF loading is off by default.
output/build/linux-6.18.60/.config:118-122
The product defconfig itself selects `CONFIG_BPF_SYSCALL=y` and `CONFIG_BPF_JIT=y`.
board/x86_64/linux_defconfig:6-7
`kernel/bpf/core.o` was built; `arch/x86/net/bpf_jit_comp.o` (line 24947) and `net/core/sysctl_net_core.o` (line 23682) were built too.
output/objects.txt:21942
`int bpf_jit_harden __read_mostly;` has no initialiser, so hardening defaults to 0 (off).
output/build/linux-6.18.60/kernel/bpf/core.c:547
`bpf_jit_blinding_enabled()` returns false when `bpf_jit_harden` is 0, and when it is 1 for a `CAP_BPF`-capable loader; blinding of privileged programs needs the value 2.
output/build/linux-6.18.60/include/linux/filter.h:1387-1399
The only way to change the value is the `net.core.bpf_jit_harden` sysctl.
output/build/linux-6.18.60/net/core/sysctl_net_core.c:456-457
The product's sysctl drop-ins set only `net.core.fb_tunnels_only_for_init_net` and `net.core.rmem_max`; `core-pattern.conf` sets `kernel.core_pattern`. A search for `bpf_jit_harden` across the tree outside the kernel source, including `board/` and `src/confd/`, returned no hits.
board/common/rootfs/etc/sysctl.d/system.conf:1-2
139 patches applied; none has `bpf` or `jit` in its path, so no backport of the fix is applied.
output/build/linux-6.18.60/.applied_patches_list
Version and patches
The tree is 6.18.60 (output/build/linux-6.18.60/Makefile: SUBLEVEL = 60) and the source does not contain the fix: there is no -ERANGE handling in bpf_jit_blind_insn() or bpf_jit_blind_constants(). None of the 139 applied patches concerns BPF.
I could not read the upstream fix commits (443328237113, ad139384ecdd) offline, so the exact affected range and the first fixed 6.18.y release are not confirmed. The affected status rests on source inspection.
Recommendation
Document as not exposed in the default product, with no emergency backport needed. Pick up the fix through the next routine 6.18.y stable bump that contains the bpf_jit_blind_insn() -ERANGE change, and re-check the function after the bump.
Re-triage if net.core.bpf_jit_harden is ever added as a hardening default in board/common/rootfs/etc/sysctl.d/: with the value 2, any privileged BPF loader could hit the crash.
Open questions
The first fixed 6.18.y version was not verified, because the upstream commits are not available offline.
I did not check whether any userspace component in the image loads eBPF programs with large backward jumps. That would only matter if hardening were switched on.
I did not review whether an operator-configured privileged container could write net.core.bpf_jit_harden and load BPF. That would be an operator granting root-equivalent access rather than a management-interface switch for this feature.
The search for bpf_jit_harden outside the kernel source used rg defaults, so git-ignored paths other than the kernel build directory were not covered.
Members of Kernel Kit decide. Sign in if you are one.