CVE-2025-37975 riscv: module: Fix out-of-bounds relocation access

High 7.1 Published Updated

A local attacker can trigger an out-of-bounds memory access in the RISC-V kernel module loader, potentially leading to code execution or system 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-37975?

CVE-2025-37975 is a high-severity memory corruption vulnerability in Linux kernel, published on 20 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: 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.

Weakness: CWE-125

Which versions are affected by CVE-2025-37975?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-37975?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-37975 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-37975, DEBIAN-CVE-2025-37975, GHSA-wh7h-h428-rm36, ROOT-OS-UBUNTU-2404-CVE-2025-37975, UBUNTU-CVE-2025-37975.

Is CVE-2025-37975 in your software?

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

Check your SBOMs for free