CVE-2026-53092: bpf: Fix linked reg delta tracking when src_reg == dst_reg
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix linked reg delta tracking when src_reg == dst_reg
Consider the case of rX += rX where src_reg and dst_reg are pointers to the same bpf_reg_state in adjust_reg_min_max_vals(). The latter first modifies the dst_reg in-place, and later in the delta tracking, the subsequent is_reg_const(src_reg)/reg_const_value(src_reg) reads the post-{add,sub} value instead of the original source.
This is problematic since it sets an incorrect delta, which sync_linked_regs() then propagates to linked registers, thus creating a verifier-vs-runtime mismatch. Fix it by just skipping this corner case.
The Linux kernel CVE team has assigned CVE-2026-53092 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit 98d7ca374ba4b39e7535613d40e159f09ca14da2 and fixed in 6.18.33 with commit d88e8e4a3b52bd5b2ff3eceba4b29d1b5506d066 Issue introduced in 6.11 with commit 98d7ca374ba4b39e7535613d40e159f09ca14da2 and fixed in 7.0.10 with commit cc86a8b0a1c54d2bccf6f68cf49b82dea91b84de Issue introduced in 6.11 with commit 98d7ca374ba4b39e7535613d40e159f09ca14da2 and fixed in 7.1 with commit d7f14173c0d5866c3cae759dee560ad1bed10d2e
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-53092
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/d88e8e4a3b52bd5b2ff3eceba4b29d1b5506d066 https://git.kernel.org/stable/c/cc86a8b0a1c54d2bccf6f68cf49b82dea91b84de https://git.kernel.org/stable/c/d7f14173c0d5866c3cae759dee560ad1bed10d2e