CVE-2025-37893 Details
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.
An off-by-one error has been identified in the Linux kernel's BPF (Berkeley Packet Filter) implementation for LoongArch architecture. This vulnerability arises in the JIT (Just-In-Time) compilation process when BPF programs use tail calls. The error causes the JITted code to miss a crucial instruction, leading to a kernel hard lockup. The issue occurs because the first pass of JIT compilation generates a certain number of instructions, while the second pass adds an extra instruction. This discrepancy causes the epilogue offset to become misaligned, directing the execution to an unexpected instruction and causing the lockup. The vulnerability has been resolved by inserting a no-operation instruction to correct the offset.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/205a2182c51ffebaef54d643e3745e720cded08b | kernel.org | Patch |
| https://git.kernel.org/stable/c/48b904de2408af5f936f0e03f48dfcddeab58aa0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/7e2586991e36663c9bc48c828b83eab180ad30a9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b3ffad2f02db4aace6799fe0049508b8925eae45 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c74d95a5679741ef428974ab788f5b0758dc78ae | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-193 | Off-by-one Error | [email protected] |
| CWE-193 | Off-by-one Error | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.1, < 6.1.134 >= 6.2, < 6.6.87 >= 6.7, < 6.12.23 >= 6.13, < 6.13.11 >= 6.14, < 6.14.2 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Apr 29, 2025 | Initial Analysis | [email protected] |
| Apr 25, 2025 | CVE Modified | kernel.org |
| Apr 18, 2025 | New CVE Received | kernel.org |