cve/2025/CVE-2025-37893.md
2025-09-29 21:09:30 +02:00

1.3 KiB

CVE-2025-37893

Description

In the Linux kernel, the following vulnerability has been resolved:LoongArch: BPF: Fix off-by-one error in build_prologue()Vincent reported that running BPF progs with tailcalls on LoongArchcauses kernel hard lockup. Debugging the issues shows that the JITedimage missing a jirl instruction at the end of the epilogue.There are two passes in JIT compiling, the first pass set the flags andthe second pass generates JIT code based on those flags. With BPF progsmixing bpf2bpf and tailcalls, build_prologue() generates N insns in thefirst pass and then generates N+1 insns in the second pass. This makesepilogue_offset off by one and we will jump to some unexpected insn andcause lockup. Fix this by inserting a nop insn.

POC

Reference

No PoCs from references.

Github