Linux
bpf: Fix linked reg delta tracking when src_reg == dst_reg
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 98d7ca374ba4b39e7535613d40e159f09ca14da2, < 1509c1ae9185ec7103899967ed788b6eebab3fcc
- >= 98d7ca374ba4b39e7535613d40e159f09ca14da2, < d88e8e4a3b52bd5b2ff3eceba4b29d1b5506d066
- >= 98d7ca374ba4b39e7535613d40e159f09ca14da2, < cc86a8b0a1c54d2bccf6f68cf49b82dea91b84de
- >= 98d7ca374ba4b39e7535613d40e159f09ca14da2, < d7f14173c0d5866c3cae759dee560ad1bed10d2e
Fixed in 1509c1ae9185ec7103899967ed788b6eebab3fcc, d88e8e4a3b52bd5b2ff3eceba4b29d1b5506d066, cc86a8b0a1c54d2bccf6f68cf49b82dea91b84de, d7f14173c0d5866c3cae759dee560ad1bed10d2e
- 6.11
Fixed in 0, 6.12.105, 6.18.33, 7.0.10, 7.1
Mitigation
Upgrade Linux to 1509c1ae9185ec7103899967ed788b6eebab3fcc or d88e8e4a3b52bd5b2ff3eceba4b29d1b5506d066 or cc86a8b0a1c54d2bccf6f68cf49b82dea91b84de or d7f14173c0d5866c3cae759dee560ad1bed10d2e or later.
Upgrade Linux to 0 or 6.12.105 or 6.18.33 or 7.0.10 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.