Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Don't remove indirect jump targets in the nop removal pass bpf_opt_remove_nops() drops every ja +0 and may_goto +0 unconditionally. A gotox target may itself be such a transparent nop: it is a verified entry of an insn array jump table that is reachable at run time through the indirect jump. bpf_insn_array_adjust_after_remove() marks it as INSN_DELETED instead, and bpf_insn_array_ready() skips INSN_DELETED entries, so the program loads with a hole in its jump table. The x86 JIT, for example, lowers gotox to a raw indirect jump, so executing that index jumps to the zeroed ips[] slot, that is, to address 0. Fix by keeping an indirect jump target in place.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
493d9e0d608339a32f568504d5fd411a261bb0af to < 4d7421b7cb5297a21be62e9fa5689e6eb531ec78affected493d9e0d608339a32f568504d5fd411a261bb0af to < c48a91c049fd98fcde54880a24c51b9a05f7e185affected
Linux Linux
Default version status: affected
6.19affected0 to < 6.19unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected