CVE-2025-37975
NoneCVSS
—
EPSS
0.2%
Published
May 20, 2025
CISA due date
—
Cloudanix analysis
A flaw in how certain RISC-V computers load kernel modules lets an attacker with local access cause crashes or potentially take over the machine; updating the operating system fixes it.
- Exploitation
- Local Privilege
- Attacker needs
- High Privilege
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- OS kernel
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds read in RISC-V module relocation handler allows rel[j] to index one element past the end of the relocation section during module loading.
Why it matters to the business
Local attackers on RISC-V Linux systems can trigger kernel memory corruption leading to crashes, denial of service, or potential privilege escalation; affected kernels must be updated promptly to avoid operational disruption.
How an attack unfolds
An attacker compiles or crafts a malicious kernel module whose relocation table is sized such that the off-by-one access reads adjacent kernel memory; when the module is loaded the kernel dereferences the out-of-bounds entry, enabling memory disclosure or corruption that can be leveraged for further exploitation.
How to fix it
Upgrade the Linux kernel to commit a068ea00009d373d825c528f9c168501519211b4 or later; for Ubuntu 22.04 LTS install openrefine 3.5.2-1ubuntu0.1~esm1 or newer; for Ubuntu 24.04 LTS install openrefine 3.7.7-1ubuntu0.1~esm1 or newer; rebuild and reboot all affected systems.
How to confirm the fix worked
Verify the running kernel contains commit a068ea00009d373d825c528f9c168501519211b4; confirm package versions match the listed fixed releases; attempt to load a module with a relocation table sized to the boundary condition and observe absence of the prior crash or warning.
Typical attack path
- Obtain local access on a RISC-V system running an affected kernel
- Prepare a kernel module whose .rel or .rela section has a relocation count that triggers the off-by-one indexing
- Load the module via insmod or modprobe
- Kernel relocation processing performs the out-of-bounds access
- Attacker uses resulting memory corruption to escalate privileges or crash the system
How to detect it
Review kernel logs (dmesg, /var/log/kern.log) for relocation-related warnings or oops during module loads; correlate module load events with crashes on RISC-V systems; inspect audit logs for unusual insmod activity preceding kernel panics.
What your security team should do
- Prioritize patching all RISC-V production kernels within the next maintenance window
- Add the fixed commit hash to automated kernel build pipelines
- Scan package repositories for any remaining vulnerable openrefine or linux-image packages and replace them
- Update detection rules to watch for unexpected module load failures on RISC-V hosts
The record
In the Linux kernel, the following vulnerability has been resolved: riscv: module: Fix out-of-bounds relocation access The current code allows rel[j] to access one element past the end of the relocation section. Simplify to num_relocations which is equivalent to the existing size expression.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:13 | linux | 0 | 6.12.25-1 |
| Linux | Kernel | 6.8.0 | 6.12.25 |
Related vulnerabilities
- CVE-2025-39885 In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix recursive… Also affects linux
- CVE-2025-39883 In the Linux kernel, the following vulnerability has been resolved: mm/memory-failure… Also affects linux
- CVE-2025-39884 In the Linux kernel, the following vulnerability has been resolved: btrfs: fix subvolume… Also affects linux
- CVE-2025-39886 In the Linux kernel, the following vulnerability has been resolved: bpf: Tell memcg to… Also affects linux
- CVE-2025-39876 In the Linux kernel, the following vulnerability has been resolved: net: fec: Fix… Also affects linux
- CVE-2025-39880 In the Linux kernel, the following vulnerability has been resolved: libceph: fix invalid… Also affects linux
- CVE-2025-39881 In the Linux kernel, the following vulnerability has been resolved: kernfs: Fix UAF in… Also affects linux
- CVE-2025-39882 In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: fix… Also affects linux