Vulnerability · Published May 8, 2025 · Assigned by Linux
CVE-2025-37822riscv: uprobes: Add missing fence.i after building the XOL buffer
High 7.8
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.164-1 | DSA-6163-1 |
| Debian:12 | linux | 6.1.164-1 | DEBIAN-CVE-2025-37822 |
| Debian:13 | linux | 6.12.27-1 | DEBIAN-CVE-2025-37822 |
| Debian:14 | linux | 6.12.27-1 | DEBIAN-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux | 5.15.0-185.195 | USN-8493-1 |
| Ubuntu:22.04:LTS | linux | 5.15.0-185.195 | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux | 6.8.0-100.100 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1111.118 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1111.118 | USN-8493-1 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1046.49 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1046.49~22.04.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1116.125 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1116.125 | USN-8493-1 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1046.52 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1051.57~22.04.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1116.125 | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-azure-fde | 6.8.0-1046.53 | UBUNTU-CVE-2025-37822 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.8 | 6.8.0-1046.53~22.04.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1111.121 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1111.121 | USN-8493-1 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1047.50 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | 6.14.0-1011.11~24.04.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1047.50~22.04.2 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1107.113 | USN-8493-1 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1107.113 | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1043.48 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1094.102 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1094.102 | USN-8493-1 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1030.33 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-100.100~22.04.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1105.109 | USN-8493-1 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1105.109 | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1044.44 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1044.44~22.04.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-intel | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1106.112 | USN-8493-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1106.112 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1103.108 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1103.108 | USN-8493-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-183.193 | USN-8493-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-183.193 | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-100.100.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-100.100.1~22.04.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1106.107 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1106.107 | USN-8493-1 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1046.49 | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1046.49~22.04.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1046.49.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1063.63 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1063.63 | USN-8493-1 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1020.20 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1052.52 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1052.52 | USN-8493-1 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1108.114 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1108.114 | USN-8493-1 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1043.44 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1043.44~22.04.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1105.108 | USN-8527-1 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1105.108 | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1047.51 | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-100.100~22.04.1 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2025-37822 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1023.24 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1074.78 | UBUNTU-CVE-2025-37822 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1074.78 | USN-8528-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 74784081aac8a0f3636965fc230e2d3b7cc123c6 – before be6d98766ac952d38241d5a5b213f363afa421c374784081aac8a0f3636965fc230e2d3b7cc123c6 – before b6d8d4d01ca8514fa89b05355f296758a91e229774784081aac8a0f3636965fc230e2d3b7cc123c6 – before 77c956152a3a7c7a18b68f3654f70565b2181d0374784081aac8a0f3636965fc230e2d3b7cc123c6 – before bcf6d3158c5902d92b6d62335af4422b7bf7c4e274784081aac8a0f3636965fc230e2d3b7cc123c6 – before 1dbb95a36499374c51b47ee8ae258a8862c2097874784081aac8a0f3636965fc230e2d3b7cc123c6 – before 7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48 |
| Linux | Linux | 5.12 |
References
- https://git.kernel.org/stable/c/be6d98766ac952d38241d5a5b213f363afa421c3
- https://git.kernel.org/stable/c/b6d8d4d01ca8514fa89b05355f296758a91e2297
- https://git.kernel.org/stable/c/77c956152a3a7c7a18b68f3654f70565b2181d03
- https://git.kernel.org/stable/c/bcf6d3158c5902d92b6d62335af4422b7bf7c4e2
- https://git.kernel.org/stable/c/1dbb95a36499374c51b47ee8ae258a8862c20978
- https://git.kernel.org/stable/c/7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48