CVE-2026-98044 bpf: Reject legacy packet loads from callbacks
설명
In the Linux kernel, the following vulnerability has been resolved: bpf: Reject legacy packet loads from callbacks check_ld_abs() models a failed BPF_LD_ABS or BPF_LD_IND in a subprogram as an implicit return with R0 set to zero. It calls prepare_func_exit() to explore this synthesized path. When the load is reached directly from a synchronous callback, prepare_func_exit() enforces the callback return contract and marks R0 precise. R0 is not derived from a real instruction on this path, so precision backtracking reaches the callback call with R0 still requested and triggers the "callback unexpected regs" verifier bug. A privileged program loader can therefore cause a verifier warning and an -EFAULT BPF_PROG_LOAD. These legacy packet-load instructions are deprecated. Reject them from callbacks rather than complicating their implicit-return model. Check all active frames before constructing the implicit return so nested static subprograms cannot hide the callback context. Global functions are verified independently with a fresh frame zero, so an active-frame check cannot identify a global function called from a callback. Also check the complete subprogram call graph during stack-depth validation and reject a function containing a legacy load when any caller is a callback. This covers global and static descendants without making has_ld_abs transitive, preserving its per-function BTF return-type check. Ordinary uses outside callbacks remain supported.
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux
영향 받는 버전
- 6.12.101 이상 6.12.114 미만
- 6.18.42 이상 6.18.53 미만
- 5.10.265 이상 5.11 미만
- 5.15.216 이상 5.16 미만
- 6.1.183 이상 6.2 미만
- 6.6.148 이상 6.7 미만
- 7.0.10 이상 7.1 미만
- 7.1
해결 버전
- 6.12.114 이상
- 6.18.53 이상
- 5.11 이상
- 5.16 이상
- 6.2 이상
- 6.7 이상
- 7.1 이상
- 7.1 미만
외 1개 구간 펼치기
- 7.2.7 이상
참고 자료 4건
- git.kernel.org https://git.kernel.org/stable/c/3484a99303912db62428494a9061212049027e57 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/bc489c0c9b8c86bd7fac42cfd1bb152f042fca56 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/cebda2a2bb4183550eae9dcf888c16407b4fffda (새 창)
- git.kernel.org https://git.kernel.org/stable/c/e7d28823c662128caae63f14e16bd394916c139b (새 창)