# CVE-2025-37822: riscv: uprobes: Add missing fence.i after building the XOL buffer

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-05-08T06:26:16.209Z
- Modified: 2026-10-15T22:18:18.913Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- 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.*; from 6.15 up to *)
- linux linux_kernel: from 5.12 before 6.12.26; from 6.13 before 6.14.5; 6.15

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/be6d98766ac952d38241d5a5b213f363afa421c3> (patch)
- <https://git.kernel.org/stable/c/b6d8d4d01ca8514fa89b05355f296758a91e2297> (patch)
- <https://git.kernel.org/stable/c/77c956152a3a7c7a18b68f3654f70565b2181d03> (patch)
- <https://git.kernel.org/stable/c/bcf6d3158c5902d92b6d62335af4422b7bf7c4e2> (patch)
- <https://git.kernel.org/stable/c/1dbb95a36499374c51b47ee8ae258a8862c20978> (patch)
- <https://git.kernel.org/stable/c/7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48> (patch)

## Sources

- CVE List: [CVE-2025-37822](https://www.cve.org/CVERecord?id=CVE-2025-37822), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-37822](https://nvd.nist.gov/vuln/detail/CVE-2025-37822), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-37822 · Whole record: https://cve.day/CVE-2025-37822.json · Rebuilt by cve.day 2026-11-25T22:58:57.800Z
