Sårbarheter

CVE-2025-37893

Middels 5.5 CVSS 3.1

Beskrivelse

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.

Beskrivelsen gjengis slik kilden har publisert den, på engelsk.

Nøkkelfakta

Publisert
2025-04-18
Sist endret
2026-07-30
Tildelt av
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS-vektor
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Scoret av
nvd@nist.gov (NVD Primary)
Sannsynlighet for utnyttelse
0.3 % høyere enn 18 % av alle kjente sårbarheter
EPSS, neste 30 dager, modell v2026.06.15
Rettelse finnes
Ja, se referansene

Berørte produkter

Leverandør Produkt Versjoner Status
Linux Linux Kernel ≥ 6.1, < 6.1.134 Berørt
Linux Linux Kernel ≥ 6.13, < 6.13.11 Berørt
Linux Linux Kernel ≥ 6.14, < 6.14.2 Berørt
Linux Linux Kernel ≥ 6.2, < 6.6.87 Berørt
Linux Linux Kernel ≥ 6.7, < 6.12.23 Berørt

Svakhetstype

  • CWE-193: Off-by-one Error

    A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.

Referanser

Relatert hos Berigo

Artikler

Berører dette dere?

En sårbarhet betyr bare noe hvis dere kjører produktet, i en berørt versjon, et sted en angriper kommer til.

Sjekk aktivalisten deres Bla i alle sårbarheter