{"id":"CVE-2025-37975","state":"PUBLISHED","title":"riscv: module: Fix out-of-bounds relocation access","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: module: Fix out-of-bounds relocation access\n\nThe current code allows rel[j] to access one element past the end of the\nrelocation section. Simplify to num_relocations which is equivalent to\nthe existing size expression.","publishedAt":"2025-05-20T16:58:19.270Z","updatedAt":"2026-05-11T21:18:51.668Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"080c4324fa5e81ff3780206a138223abfb57a68e","status":"affected","lessThan":"a068ea00009d373d825c528f9c168501519211b4","versionType":"git"},{"version":"080c4324fa5e81ff3780206a138223abfb57a68e","status":"affected","lessThan":"95e4e1c1cf614d125f159db9726b7abb32e18385","versionType":"git"},{"version":"080c4324fa5e81ff3780206a138223abfb57a68e","status":"affected","lessThan":"0b4cce68efb93e31a8e51795d696df6e379cb41c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/kernel/module.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.25","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.4","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/kernel/module.c"]}],"references":["https://git.kernel.org/stable/c/a068ea00009d373d825c528f9c168501519211b4","https://git.kernel.org/stable/c/95e4e1c1cf614d125f159db9726b7abb32e18385","https://git.kernel.org/stable/c/0b4cce68efb93e31a8e51795d696df6e379cb41c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:03.054Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/37xxx/CVE-2025-37975.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-37975","state":"PUBLISHED","datePublished":"2025-05-20T16:58:19.270Z","dateUpdated":"2026-05-11T21:18:51.668Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.975Z"},"containers":{"cna":{"title":"riscv: module: Fix out-of-bounds relocation access","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: module: Fix out-of-bounds relocation access\n\nThe current code allows rel[j] to access one element past the end of the\nrelocation section. Simplify to num_relocations which is equivalent to\nthe existing size expression."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"080c4324fa5e81ff3780206a138223abfb57a68e","status":"affected","lessThan":"a068ea00009d373d825c528f9c168501519211b4","versionType":"git"},{"version":"080c4324fa5e81ff3780206a138223abfb57a68e","status":"affected","lessThan":"95e4e1c1cf614d125f159db9726b7abb32e18385","versionType":"git"},{"version":"080c4324fa5e81ff3780206a138223abfb57a68e","status":"affected","lessThan":"0b4cce68efb93e31a8e51795d696df6e379cb41c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/kernel/module.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.25","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.4","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/kernel/module.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a068ea00009d373d825c528f9c168501519211b4"},{"url":"https://git.kernel.org/stable/c/95e4e1c1cf614d125f159db9726b7abb32e18385"},{"url":"https://git.kernel.org/stable/c/0b4cce68efb93e31a8e51795d696df6e379cb41c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:18:51.668Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.12.25"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.14.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}