[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025022647-CVE-2025-21723-9f05@gregkh>
Date: Wed, 26 Feb 2025 18:06:18 -0800
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2025-21723: scsi: mpi3mr: Fix possible crash when setting up bsg fails
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:
<TASK>
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
Powered by blists - more mailing lists