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 9B43D26C381 for ; Fri, 9 May 2025 06:43:47 +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=1746773027; cv=none; b=bbkCw7j0qjPwhFMXd6ZTcst/ietREVUF2ipdwo5M4PZi1hULPxcysSV+gZ5owVnacDsG6CwuFICpRFEzi3llHMQE31ulhleN52jrt1Q/EyNYIWPe9cktG/w9AkgA/XB/H20arM2+oMdsGtwptNbJgSxPapudQMwf3ykjQrYz1KQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773027; c=relaxed/simple; bh=4xxtJ1RLkF7zeJF0nXZTV8r8R0B2mPRDUzd/M/Sgr3Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kftni/dvV7WsEy2y9Z0tWSiKO9wEDD4/n8CYdh8vUPqHkd/vPktxHz36SmlLFGDJBc/5iV+Ypo6dgUwX9FpDfwnoy+DtN8x2JQsoU3wJqgQjSDsVxUYUOz+qoDDPPfwP3aL+KLBdca1K6HKSx2rMRaiWXHce3PjD5kbL/3/od0w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sNDMU1l1; 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="sNDMU1l1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A75FC4CEE4; Fri, 9 May 2025 06:43:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746773027; bh=4xxtJ1RLkF7zeJF0nXZTV8r8R0B2mPRDUzd/M/Sgr3Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sNDMU1l1fUx+KIpSQtDhR0cDbJiwr4eNEJwMSX8FfG2uKjAtdA4XQe78oSpunTK53 0Y0FsWAJwCsQTvM7xYVjzGkYHhwCxlB60heBXvokhJccbpdbSu3m5Upj9tswiDWYg1 z03DHlL9nPLZ84cYMMUX8vXdMhsV+Qk4Yx9GXVEA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37846: arm64: mops: Do not dereference src reg for a set operation Date: Fri, 9 May 2025 08:42:24 +0200 Message-ID: <2025050917-CVE-2025-37846-9afa@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=2681; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IsOfiIk0SfLYf0j2H7GtwFAxWBS5M5UxgzUvxoqwTAE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyi08yv4zLmZk6Tck3z/vjz0lLJl+cn9Kyf839/ZM6p koVtljUdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEFrQwzI/r75LV/HdRb63S Kgn/s8//PJFYrcMwP+PZhfsOTC/ELj44urGY7/KKjKjzAQA= 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: arm64: mops: Do not dereference src reg for a set operation The source register is not used for SET* and reading it can result in a UBSAN out-of-bounds array access error, specifically when the MOPS exception is taken from a SET* sequence with XZR (reg 31) as the source. Architecturally this is the only case where a src/dst/size field in the ESR can be reported as 31. Prior to 2de451a329cf662b the code in do_el0_mops() was benign as the use of pt_regs_read_reg() prevented the out-of-bounds access. The Linux kernel CVE team has assigned CVE-2025-37846 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 2de451a329cf662beeba71f63c7f83ee24ca6642 and fixed in 6.12.24 with commit eec737e17e5567e08148550a7f1d94d495b9fb17 Issue introduced in 6.7 with commit 2de451a329cf662beeba71f63c7f83ee24ca6642 and fixed in 6.13.12 with commit 43267d934eacff6c70e15545d804ebbcab8a0bf5 Issue introduced in 6.7 with commit 2de451a329cf662beeba71f63c7f83ee24ca6642 and fixed in 6.14.3 with commit 5f6022a74147675124b781fdc056b291850e7786 Issue introduced in 6.7 with commit 2de451a329cf662beeba71f63c7f83ee24ca6642 and fixed in 6.15-rc1 with commit a13bfa4fe0d6949cea14718df2d1fe84c38cd113 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-37846 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/arm64/include/asm/traps.h 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/eec737e17e5567e08148550a7f1d94d495b9fb17 https://git.kernel.org/stable/c/43267d934eacff6c70e15545d804ebbcab8a0bf5 https://git.kernel.org/stable/c/5f6022a74147675124b781fdc056b291850e7786 https://git.kernel.org/stable/c/a13bfa4fe0d6949cea14718df2d1fe84c38cd113