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 1826E1547EE for ; Thu, 27 Feb 2025 02:08:59 +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=1740622139; cv=none; b=D/x7QeMFepX9AA5+T2uagcHtuxQID0+IcD0y2DN8zOPRmM+Ekt99Vb8K9+zeJ9LarACO2BDEp92z/59siaGcWS9cJ/X9HXbMdlgzO5rf+gOlW82K6OZHzvbkVMTD5egzKV0S/N8oBLQQiOSje0K/kVAQGfj8r8uig9n6WsxeqMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622139; c=relaxed/simple; bh=QsbuEtnSMnKBFsczKJ5RnbU7zeDe53xJG2kAnFJqw90=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j7fi33SezOWBiCMl/AErPfLh1MsUxrARiuO6+VHc5pi2a6GW4AMWNDeVX5ya6stbfZzpQTPNs35rFpY4fdn09uGB/SPqj2QXoSpirSCpGsfjQghHCiPgd9uVUVKjGMI2NHlo3taNfq49xHog89B79vkMdpXLUHoSvS5egGLZxB4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yHWyWWLL; 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="yHWyWWLL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7848C4CEE2; Thu, 27 Feb 2025 02:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622138; bh=QsbuEtnSMnKBFsczKJ5RnbU7zeDe53xJG2kAnFJqw90=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yHWyWWLLI2rcuMFynsIoQXA+qTkji3JQ8776gAfcyoYGPiPWywe6kGsdRC3LUjEYv wVrLWhVb/5LhJ/oYxeSlzafM/477b2oZneOB/YhH/mQnA2vOpWqin+s9O/Vk/ETIZ9 Q6zN8KxAbWqMo2xIRSB02rgNnhxLk3pZXY0YfXQg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21723: scsi: mpi3mr: Fix possible crash when setting up bsg fails Date: Wed, 26 Feb 2025 18:06:18 -0800 Message-ID: <2025022647-CVE-2025-21723-9f05@gregkh> X-Mailer: git-send-email 2.48.1 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=2699; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QsbuEtnSMnKBFsczKJ5RnbU7zeDe53xJG2kAnFJqw90=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T1TzOmicschpzXi/vDv3knu7a1dFyGnJ4CuXhOJ4j z121JrdEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNxYWWYn6eseZBtWviLjj/W U0Wu70qR/SQ0lWHBFmOeENPj299Pucnt43FUorlpTsksAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix possible crash when setting up bsg fails If bsg_setup_queue() fails, the bsg_queue is assigned a non-NULL value. Consequently, in mpi3mr_bsg_exit(), the condition "if(!mrioc->bsg_queue)" will not be satisfied, preventing execution from entering bsg_remove_queue(), which could lead to the following crash: BUG: kernel NULL pointer dereference, address: 000000000000041c Call Trace: mpi3mr_bsg_exit+0x1f/0x50 [mpi3mr] mpi3mr_remove+0x6f/0x340 [mpi3mr] pci_device_remove+0x3f/0xb0 device_release_driver_internal+0x19d/0x220 unbind_store+0xa4/0xb0 kernfs_fop_write_iter+0x11f/0x200 vfs_write+0x1fc/0x3e0 ksys_write+0x67/0xe0 do_syscall_64+0x38/0x80 entry_SYSCALL_64_after_hwframe+0x78/0xe2 The Linux kernel CVE team has assigned CVE-2025-21723 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 4268fa7513655a83d5492705591fdac6c65db48a and fixed in 6.12.13 with commit 19b248069d1b1424982723a2bf3941ad864d5204 Issue introduced in 5.19 with commit 4268fa7513655a83d5492705591fdac6c65db48a and fixed in 6.13.2 with commit 832b8f95a2832321b8200ae478ed988b25faaef4 Issue introduced in 5.19 with commit 4268fa7513655a83d5492705591fdac6c65db48a and fixed in 6.14-rc1 with commit 295006f6e8c17212d3098811166e29627d19e05c 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-21723 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_app.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/19b248069d1b1424982723a2bf3941ad864d5204 https://git.kernel.org/stable/c/832b8f95a2832321b8200ae478ed988b25faaef4 https://git.kernel.org/stable/c/295006f6e8c17212d3098811166e29627d19e05c