Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5206E35893 for ; Tue, 20 May 2025 16:58:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747760315; cv=none; b=TEj+DsLsHGahX74GMOGkGS9m39HtaZCQC93d1ICQFNA1x+GvOIoXeZskOg+FYCYP5IEqD2bSW97bTOBOfD6VB9Metr/0Km3otEKlTTQoH7WYgT1gzyaAzaSxFlz9jAyQq76msffdm/eVeX8+Y1y+5E4lDRC94hOeRQ8jeRNbhRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747760315; c=relaxed/simple; bh=ZuSUb+GPUzZA2kxaqbpWvlTD6NwAJONui0EzBdoZWVc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iTUMELJQ6kCDMfCF7KEs7XdkY70wUHWPy/3gFV0bz9n3NuG7B47hVHgpPocJpZcxr0nhRV9hrzCqwYbaXlL8LYQurWkDJZ0+vrQ08KxQ186pxzPdET7XMY+GTsvL0CSkTTVoMZzWwynhI+vaubbRJJTsMTol5pFD9iZIuXTS1hM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=U2ZWjIMA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="U2ZWjIMA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D1CAC4CEE9; Tue, 20 May 2025 16:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747760314; bh=ZuSUb+GPUzZA2kxaqbpWvlTD6NwAJONui0EzBdoZWVc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=U2ZWjIMAkzDJYUcl1XLl/T+cDYfBEpLsuYVuoCbiebfbBc6vEPMyqOLudeK3gJfQD yzXbVYd69k7Nl4pNs0GezMreiXFWYBjFKNT9Rov+MD/6rbcjduESsA8b8sSW4wrgz1 +EH8Lx0Ssh40y7CSJ6s10rn66bp5nyI2nmijDfzw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37975: riscv: module: Fix out-of-bounds relocation access Date: Tue, 20 May 2025 18:56:39 +0200 Message-ID: <2025052038-CVE-2025-37975-b350@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2165; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=c7ln3DuUksL/wUVJYh1CgC4FSGGeBnnCoo+MnkGHvI8=; b=kA0DAAIRMUfUDdst+ykByyZiAGgstEah0gmmBcxHq5fs4EA6AC6gAeCLLVLDK/5pxfOShtTKA YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmgstEYACgkQMUfUDdst+yms8QCgwdVQ 64/PqxdwQGfuYx8vaHJbm24An3WscCxZ3SroJ3uyLiyui/iq/5pV X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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