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

High 7.8 Published Updated

Missing instruction cache flush in RISC-V uprobes causes execution of stale instructions, leading to system instability or crashes.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-37822?

CVE-2025-37822 is a high-severity vulnerability in Linux kernel, published on 8 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2025-37822?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-37822?

Apply the vendor's patch.

Is CVE-2025-37822 being exploited?

There is no known exploitation of CVE-2025-37822 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-62756, AZL-69887, BELL-CVE-2025-37822, DEBIAN-CVE-2025-37822, GHSA-jc2j-hqm3-7764, ROOT-OS-DEBIAN-12-CVE-2025-37822 and 3 more.

Is CVE-2025-37822 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free