CVE-2026-53090: bpf: Fix ld_{abs,ind} failure path analysis in subprogs
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
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.
The Linux kernel CVE team has assigned CVE-2026-53090 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit 09b28d76eac48e922dc293da1aa2b2b85c32aeee and fixed in 7.0.10 with commit d846d83bdacbd8f14fc45c63b8c1d22608452e1c Issue introduced in 5.10 with commit 09b28d76eac48e922dc293da1aa2b2b85c32aeee and fixed in 7.1 with commit ee861486e377edc55361c08dcbceab3f6b6577bd
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53090
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
kernel/bpf/verifier.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/d846d83bdacbd8f14fc45c63b8c1d22608452e1c https://git.kernel.org/stable/c/ee861486e377edc55361c08dcbceab3f6b6577bd