bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-53090

7.8high

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

bpf: Fix ld_{abs,ind} failure path analysis in subprogs

Usage of ld_{abs,ind} instructions got extended into subprogs some time ago via commit 09b28d76eac4 ("bpf: Add abnormal return checks."). These are only allowed in subprograms when the latter are BTF annotated and have scalar return types.

The code generator in bpf_gen_ld_abs() has an abnormal exit path (r0=0 + exit) from legacy cBPF times. While the enforcement is on scalar return types, the verifier must also simulate the path of abnormal exit if the packet data load via ld_{abs,ind} failed.

This is currently not the case. Fix it by having the verifier simulate both success and failure paths, and extend it in similar ways as we do for tail calls. The success path (r0=unknown, continue to next insn) is pushed onto stack for later validation and the r0=0 and return to the caller is done on the fall-through side.

Published 2026-06-24NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged

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

References 11
Review Av26.10.0x86_64Not affected✓ accepted by a member, 2026-11-12 · settles 4 of 8

Fable 5.1 · high confidence · 2026-11-05

The fix for CVE-2026-53090 is already present in the linux 6.18.60 source in this tree: check_ld_abs() in kernel/bpf/verifier.c contains the hunk that, for ld_abs/ld_ind in a subprogram, pushes the success path onto the verifier stack and simulates the hidden r0=0 return via prepare_func_exit(), exactly as the fix describes.

This is upstream stable content (no local bpf patches are applied), so NVD's match on 6.18.60 is stale with respect to the stable backport.

BPF is compiled in (CONFIG_BPF_SYSCALL=y, unprivileged BPF off by default), but the code is the fixed version, so reachability is moot.

Evidence 5

…/ is output/build/linux-6.18.60/

  1. Contains the fix: comment 'See bpf_gen_ld_abs() which emits a hidden BPF_EXIT with r0=0 which must be explored by the verifier when in a subprog' followed by if (env->cur_state->curframe) { mark_reg_scratched(r0); push_stack(insn_idx+1); mark_reg_known_zero(r0); prepare_func_exit(); insn_idx--; }

    …/kernel/bpf/verifier.c:17690-17706 (check_ld_abs)

  2. The tail-call pattern the fix is modelled on; same push_stack/prepare_func_exit structure, confirming the tree is at the fixed state

    …/kernel/bpf/verifier.c:12215-12241 (check_helper_call, BPF_FUNC_tail_call)

  3. VERSION 6, PATCHLEVEL 18, SUBLEVEL 60

    …/Makefile:2-4

  4. No bpf/verifier patches applied locally; the fix is upstream stable content

    …/.applied_patches_list

  5. CONFIG_BPF=y, CONFIG_BPF_SYSCALL=y, CONFIG_BPF_JIT=y, CONFIG_BPF_UNPRIV_DEFAULT_OFF=y — verifier is compiled in but is the fixed version

    …/.config

Version and patches

Fixed check_ld_abs() hunk from the CVE's stable fix is present verbatim in linux 6.18.60 in this tree; NVD's CPE range for 6.18.60 does not account for the stable backport. No local patch addresses it (none needed).

Recommendation

Document as N/A: the fix is already included in linux 6.18.60. No upgrade or backport required for this CVE.

Open questions

Could not fetch the upstream commits over the network to diff byte-for-byte, but the present code implements exactly the behaviour the CVE description specifies (success path pushed to stack, r0=0 return simulated on fall-through, modelled on tail calls).

Members of Kernel Kit decide. Sign in if you are one.