CVE-2025-37893: LoongArch: BPF: Fix off-by-one error in build_prologue()

Published Apr 18, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

LoongArch: BPF: Fix off-by-one error in buildprologue()

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, buildprologue() generates N insns in the first pass and then generates N+1 insns in the second pass. This makes epilogueoffset off by one and we will jump to some unexpected insn and cause lockup. Fix this by inserting a nop insn.

Affected Software

8 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.1<6.1.134
Linux Linux kernel>=6.2<6.6.87
Linux Linux kernel>=6.7<6.12.23
Linux Linux kernel>=6.13<6.13.11
Linux Linux kernel>=6.14<6.14.2
Microsoft azl3 kernel 6.6.92.2-1
Microsoft azl3 kernel 6.6.85.1-4

Event History

Apr 18, 2025
CVE Published
via MITRE·07:01 AM
Data Sourced
via MITRE·07:01 AM
DescriptionSeverity
Data Sourced
via NVD·07:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 11, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-37893?

CVE-2025-37893 has been classified as a moderate severity vulnerability due to its potential to cause kernel hard locks when running BPF programs.

2

How do I fix CVE-2025-37893?

To fix CVE-2025-37893, update your Linux kernel to the latest stable version where the vulnerability has been patched.

3

What does CVE-2025-37893 affect?

CVE-2025-37893 specifically affects the Linux kernel running on the LoongArch architecture.

4

What kind of issue does CVE-2025-37893 cause?

CVE-2025-37893 causes kernel hard lockups when executing BPF programs with tail calls on the affected architecture.

5

Who reported the vulnerability CVE-2025-37893?

The vulnerability CVE-2025-37893 was reported by Vincent.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203