CVE-2025-37893

MEDIUM

Linux Kernel 6.1-6.1.133, 6.1.0-6.6.86, 6.7.0-6.12.22, 6.13.0-6.13.10, 6.14.0-6.14.1 - BPF JIT Off-by-one Error

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0021
EPSS Percentile 10.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-193
Status published
Products (17)
linux/Kernel 6.1.0 - 6.6.87linux
linux/Kernel 6.13.0 - 6.13.11linux
linux/Kernel 6.14.0 - 6.14.2linux
linux/Kernel 6.7.0 - 6.12.23linux
Linux/Linux < 6.1
Linux/Linux 5dc615520c4dfb358245680f1904bad61116648e - 205a2182c51ffebaef54d643e3745e720cded08b
Linux/Linux 5dc615520c4dfb358245680f1904bad61116648e - 48b904de2408af5f936f0e03f48dfcddeab58aa0
Linux/Linux 5dc615520c4dfb358245680f1904bad61116648e - 7e2586991e36663c9bc48c828b83eab180ad30a9
Linux/Linux 5dc615520c4dfb358245680f1904bad61116648e - b3ffad2f02db4aace6799fe0049508b8925eae45
Linux/Linux 5dc615520c4dfb358245680f1904bad61116648e - c74d95a5679741ef428974ab788f5b0758dc78ae
... and 7 more
Published Apr 18, 2025
Tracked Since Feb 18, 2026