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

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/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.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-05-20T16:58:19.270Z
- Modified: 2026-06-17T09:15:48.573Z
- Weaknesses: CWE-125
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 080c4324fa5e81ff3780206a138223abfb57a68e before a068ea00009d373d825c528f9c168501519211b4; from 080c4324fa5e81ff3780206a138223abfb57a68e before 95e4e1c1cf614d125f159db9726b7abb32e18385; from 080c4324fa5e81ff3780206a138223abfb57a68e before 0b4cce68efb93e31a8e51795d696df6e379cb41c; 6.8 (not affected: before 6.8; from 6.12.25 up to 6.12.*; from 6.14.4 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.8 before 6.12.25; from 6.13 before 6.14.4; 6.15

## References

- <https://git.kernel.org/stable/c/a068ea00009d373d825c528f9c168501519211b4> (patch)
- <https://git.kernel.org/stable/c/95e4e1c1cf614d125f159db9726b7abb32e18385> (patch)
- <https://git.kernel.org/stable/c/0b4cce68efb93e31a8e51795d696df6e379cb41c> (patch)

## Sources

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

---

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