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 DE43626B2B1 for ; Fri, 9 May 2025 06:43:20 +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=1746773000; cv=none; b=iVEat3FLsFwGwthb/SafKH4HiNUzoOV9phYi1Nc7qny64zHoXd6yoUmTxrrYs+3xq4pmUyjII4hTzi95/Hn4dmxG/fNqpvB19S9XRYbTbXmkQrfa15APrN4LJQV3xAcYrAcY5Wqi04xTnnEFhZrA/b9/siXJlQOILkJljNcVaG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773000; c=relaxed/simple; bh=/cSiHVpV3Wbj3VStdUpyrT3mx1GQ2px0l/PVTJBAhlE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lh5x+IoM/vHrZXytPC9YqwJyjV5o1w/B9dYrcJvNyxC78USOwEppb8n9eRN1XzGOtdZeGwsyefwXnX7yYvqs8zRLaD9t26i1CMN13O33ZkO3+l/vR5tnuzv7LjRTdU2apbjLuVm3likeFFUjz2+Ot7xOe81OWdkUgI8wQHkCV1Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q6MR8hAF; 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="Q6MR8hAF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DD5FC4CEE4; Fri, 9 May 2025 06:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746773000; bh=/cSiHVpV3Wbj3VStdUpyrT3mx1GQ2px0l/PVTJBAhlE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Q6MR8hAFiIrArVH6rezmzXNgi4E/B0YxQzNSp4ViICTK+LY6Tws+8I6W7dadec4/9 HQoWY6I+Zw/26aVZ4UjuGugKgj302AGzOWSQtC94sJOmJG8K9sQncHVKUycvbXNSrk kg5rFuSCc0tQYKWjmKhQeqAcIFSrnB9MJxtoPaE4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37861: scsi: mpi3mr: Synchronous access b/w reset and tm thread for reply queue Date: Fri, 9 May 2025 08:42:38 +0200 Message-ID: <2025050922-CVE-2025-37861-ab7f@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=2567; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WB03IAmSqsuJNKLD2Fx2uiKMhAzmM8DwJ5105xifea0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyi8+d7hP6nyO8pz4uVr3e6NCBP5xnGWfNk+A+IfPs/ abpnxWLO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi39sZ5srF507U2uFwb/Hs qmbJq/L/GBgylzMsuHn6iLSLW0HTtsSIAsObF+L5zD/PBQA= 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: scsi: mpi3mr: Synchronous access b/w reset and tm thread for reply queue When the task management thread processes reply queues while the reset thread resets them, the task management thread accesses an invalid queue ID (0xFFFF), set by the reset thread, which points to unallocated memory, causing a crash. Add flag 'io_admin_reset_sync' to synchronize access between the reset, I/O, and admin threads. Before a reset, the reset handler sets this flag to block I/O and admin processing threads. If any thread bypasses the initial check, the reset thread waits up to 10 seconds for processing to finish. If the wait exceeds 10 seconds, the controller is marked as unrecoverable. The Linux kernel CVE team has assigned CVE-2025-37861 to this issue. Affected and fixed versions =========================== Fixed in 6.12.24 with commit 65ba18c84dbd03afe9b38c06c151239d97a09834 Fixed in 6.13.12 with commit 8d310d66e2b0f5f9f709764641647e8a3a4924fa Fixed in 6.14.3 with commit 75b67dca4195e11ccf966a704787b2aa2754a457 Fixed in 6.15-rc1 with commit f195fc060c738d303a21fae146dbf85e1595fb4c 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-37861 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: drivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_fw.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/65ba18c84dbd03afe9b38c06c151239d97a09834 https://git.kernel.org/stable/c/8d310d66e2b0f5f9f709764641647e8a3a4924fa https://git.kernel.org/stable/c/75b67dca4195e11ccf966a704787b2aa2754a457 https://git.kernel.org/stable/c/f195fc060c738d303a21fae146dbf85e1595fb4c