CVE-2026-45967: bpf: Return proper address for non-zero offsets in insn array
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bpf: Return proper address for non-zero offsets in insn array
The map_direct_value_addr() function of the instruction array map incorrectly adds offset to the resulting address. This is a bug, because later the resolve_pseudo_ldimm64() function adds the offset. Fix it. Corresponding selftests are added in a consequent commit.
The Linux kernel CVE team has assigned CVE-2026-45967 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit 493d9e0d608339a32f568504d5fd411a261bb0af and fixed in 6.19.4 with commit 73ef43202a37d779a8e665a0acae214fa59df9fb Issue introduced in 6.19 with commit 493d9e0d608339a32f568504d5fd411a261bb0af and fixed in 7.0 with commit e3bd7bdf5ffe49d8381e42843f6e98cd0c78a1e8
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-45967
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/bpf_insn_array.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/73ef43202a37d779a8e665a0acae214fa59df9fb https://git.kernel.org/stable/c/e3bd7bdf5ffe49d8381e42843f6e98cd0c78a1e8