CVE-2025-37893
LoongArch BPF Off-by-One Error Lockup
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.
INFO
Published Date :
April 18, 2025, 7:15 a.m.
Last Modified :
April 29, 2025, 4:54 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-37893
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-37893
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-37893
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Apr. 29, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-193 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.13.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.14 up to (excluding) 6.14.2 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.87 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.23 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.1 up to (excluding) 6.1.134 Added Reference Type kernel.org: https://git.kernel.org/stable/c/205a2182c51ffebaef54d643e3745e720cded08b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/48b904de2408af5f936f0e03f48dfcddeab58aa0 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/7e2586991e36663c9bc48c828b83eab180ad30a9 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/b3ffad2f02db4aace6799fe0049508b8925eae45 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/c74d95a5679741ef428974ab788f5b0758dc78ae Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 25, 2025
Action Type Old Value New Value Removed Reference https://git.kernel.org/stable/c/e9ccb262b39ab01a5ac2e485b7996b8498e7b373 -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 18, 2025
Action Type Old Value New Value Added 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. Added Reference https://git.kernel.org/stable/c/205a2182c51ffebaef54d643e3745e720cded08b Added Reference https://git.kernel.org/stable/c/48b904de2408af5f936f0e03f48dfcddeab58aa0 Added Reference https://git.kernel.org/stable/c/7e2586991e36663c9bc48c828b83eab180ad30a9 Added Reference https://git.kernel.org/stable/c/b3ffad2f02db4aace6799fe0049508b8925eae45 Added Reference https://git.kernel.org/stable/c/c74d95a5679741ef428974ab788f5b0758dc78ae Added Reference https://git.kernel.org/stable/c/e9ccb262b39ab01a5ac2e485b7996b8498e7b373
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-37893
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-37893
weaknesses.