In the Linux kernel, the following vulnerability has been resolved: LoongArch: BPF: Fix jump offset calculation in tailcall The extra pass of bpf_int_...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:16.04:LTSlinux-hwe-edge |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-aws-5.0 |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-aws-5.3 |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-azure |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-azure-5.3 |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-azure-edge |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-gcp |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-gcp-5.3 |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-gke-4.15 |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-gke-5.4 |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-gkeop-5.4 |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-hwe |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-hwe-edge |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-oem |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-oracle-5.0 |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlinux-oracle-5.3 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-aws-5.11 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-aws-5.13 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-aws-5.8 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-azure-5.11 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-azure-5.13 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-azure-5.8 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-azure-fde |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-gcp-5.11 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-gcp-5.13 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-gcp-5.8 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-gke |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-gke-5.15 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-gkeop |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-gkeop-5.15 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-hwe-5.11 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-hwe-5.13 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-hwe-5.8 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-intel-5.13 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-oem-5.10 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-oem-5.13 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-oem-5.14 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-oem-5.6 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-oracle-5.11 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-oracle-5.13 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-oracle-5.8 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-raspi2 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-riscv |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-riscv-5.11 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-riscv-5.8 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-allwinner-5.19 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-aws-5.19 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-aws-6.2 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-aws-6.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-azure-5.19 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-azure-6.2 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-azure-6.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-azure-fde-5.19 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-azure-fde-6.2 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-gcp-5.19 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-gcp-6.2 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-gcp-6.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-hwe-5.19 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-hwe-6.2 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-hwe-6.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-intel-iot-realtime |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-nvidia-6.2 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-nvidia-6.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-oem-5.17 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-oem-6.0 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-oem-6.1 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-oem-6.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-oracle-6.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-realtime |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-riscv |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-riscv-5.19 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-riscv-6.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-starfive-5.19 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-starfive-6.2 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-starfive-6.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-azure-6.11 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-gcp-6.11 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-hwe-6.11 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-intel |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-lowlatency-hwe-6.11 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-oem-6.11 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-oem-6.8 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-raspi-realtime |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-realtime |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-riscv |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-riscv-6.14 |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
In the Linux kernel, the following vulnerability has been resolved: LoongArch: BPF: Fix jump offset calculation in tailcall The extra pass of bpf_int_jit_compile() skips JIT context initialization which essentially skips offset calculation leaving out_offset = -1, so the jmp_offset in emit_bpf_tail_call is calculated by "#define jmp_offset (out_offset - (cur_offset))" is a negative number, which is wrong. The final generated assembly are as follow. 54: bgeu $a2, $t1, -8 # 0x0000004c 58: addi.d $a6, $s5, -1 5c: bltz $a6, -16 # 0x0000004c 60: alsl.d $t2, $a2, $a1, 0x3 64: ld.d $t2, $t2, 264 68: beq $t2, $zero, -28 # 0x0000004c Before apply this patch, the follow test case will reveal soft lock issues. cd tools/testing/selftests/bpf/ ./test_progs --allow=tailcalls/tailcall_bpf2bpf_1 dmesg: watchdog: BUG: soft lockup - CPU#2 stuck for 26s! [test_progs:25056]
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report git.kernel.org
- report git.kernel.org
- report git.kernel.org
- report git.kernel.org
- report git.kernel.org
- report git.kernel.org
- report git.kernel.org