[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025052038-CVE-2025-37975-b350@gregkh>
Date: Tue, 20 May 2025 18:56:39 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-37975: riscv: module: Fix out-of-bounds relocation access
From: Greg Kroah-Hartman <gregkh@...nel.org>
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.
The Linux kernel CVE team has assigned CVE-2025-37975 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit 080c4324fa5e81ff3780206a138223abfb57a68e and fixed in 6.12.25 with commit a068ea00009d373d825c528f9c168501519211b4
Issue introduced in 6.8 with commit 080c4324fa5e81ff3780206a138223abfb57a68e and fixed in 6.14.4 with commit 95e4e1c1cf614d125f159db9726b7abb32e18385
Issue introduced in 6.8 with commit 080c4324fa5e81ff3780206a138223abfb57a68e and fixed in 6.15-rc3 with commit 0b4cce68efb93e31a8e51795d696df6e379cb41c
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-37975
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/riscv/kernel/module.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/a068ea00009d373d825c528f9c168501519211b4
https://git.kernel.org/stable/c/95e4e1c1cf614d125f159db9726b7abb32e18385
https://git.kernel.org/stable/c/0b4cce68efb93e31a8e51795d696df6e379cb41c
Powered by blists - more mailing lists