7.8high
riscv: uprobes: Add missing fence.i after building the XOL buffer
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.27% (higher than 21% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: riscv: uprobes: Add missing fence.i after building the XOL buffer The XOL (execute out-of-line) buffer is used to single-step the replaced instruction(s) for uprobes. The RISC-V port was missing a proper fence.i (i$ flushing) after constructing the XOL buffer, which can result in incorrect execution of stale/broken instructions. This was found running the BPF selftests "test_progs: uprobe_autoattach, attach_probe" on the Spacemit K1/X60, where the uprobes tests randomly blew up.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 74784081aac8a0f3636965fc230e2d3b7cc123c6 before be6d98766ac952d38241d5a5b213f363afa421c3, from 74784081aac8a0f3636965fc230e2d3b7cc123c6 before b6d8d4d01ca8514fa89b05355f296758a91e2297, from 74784081aac8a0f3636965fc230e2d3b7cc123c6 before 77c956152a3a7c7a18b68f3654f70565b2181d03, from 74784081aac8a0f3636965fc230e2d3b7cc123c6 before bcf6d3158c5902d92b6d62335af4422b7bf7c4e2, from 74784081aac8a0f3636965fc230e2d3b7cc123c6 before 1dbb95a36499374c51b47ee8ae258a8862c20978, from 74784081aac8a0f3636965fc230e2d3b7cc123c6 before 7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48, 5.12 Not affected: before 5.12, from 5.15.200 up to 5.15.*, from 6.1.163 up to 6.1.*, from 6.6.121 up to 6.6.*, from 6.12.26 up to 6.12.*, from 6.14.5 up to 6.14.* | CVE List |
| linux linux_kernel | from 5.12 before 6.12.26, from 6.13 before 6.14.5, 6.15 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: riscv: uprobes: Add missing fence.i after building the XOL buffer The XOL (execute out-of-line) buffer is used to single-step the replaced instruction(s) for uprobes. The RISC-V port was missing a proper fence.i (i$ flushing) after constructing the XOL buffer, which can result in incorrect execution of stale/broken instructions. This was found running the BPF selftests "test_progs: uprobe_autoattach, attach_probe" on the Spacemit K1/X60, where the uprobes tests randomly blew up.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: riscv: uprobes: Añadir un archivo "fence.i" faltante tras la construcción del búfer XOL. El búfer XOL (ejecución fuera de línea) se utiliza para ejecutar paso a paso las instrucciones reemplazadas para uprobes. El puerto RISC-V carecía de un archivo "fence.i" adecuado (vaciado de i$) tras la construcción del búfer XOL, lo que puede provocar la ejecución incorrecta de instrucciones obsoletas o dañadas. Esto se detectó al ejecutar las pruebas automáticas de BPF "test_progs: uprobe_autoattach, attached_probe" en Spacemit K1/X60, donde las pruebas de uprobes fallaron aleatoriamente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-37822 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2025-37822 changed 2026-10-15 | Public domain |