CVE-2025-37893

High

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 LoongArch causes kernel hard lockup. Debugging the issues shows that the JITed image missing a jirl instruction at the end of the epilogue. There are two passes in JIT compiling, the first pass set the flags and the second pass generates JIT code based on those flags. With BPF progs mixing bpf2bpf and tailcalls, build_prologue() generates N insns in the first pass and then generates N+1 insns in the second pass. This makes epilogue_offset off by one and we will jump to some unexpected insn and cause lockup. Fix this by inserting a nop insn.

SeverityHigh
CVSS7.8
Exploit probability—
ProductLinux Kernel
PublishedApr 18, 2025
First seenApr 18, 2025
Weakness typeCWE-193CWE-193

How to fix

Update
  • linux linux_kernel6.1.134, 6.6.87, 6.12.23, 6.13.11, 6.14.2 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel6.1 ≤ v < 6.1.134, 6.2 ≤ v < 6.6.87, 6.7 ≤ v < 6.12.23, 6.13 ≤ v < 6.13.11, 6.14 ≤ v < 6.14.26.1.134, 6.6.87, 6.12.23, 6.13.11, 6.14.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.