Skip to contentSkip to conversation

CVE-2023-53037: scsi: mpi3mr: Bad drive in topology results kernel crash

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 2, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

scsi: mpi3mr: Bad drive in topology results kernel crash

When the SAS Transport Layer support is enabled and a device exposed to the OS by the driver fails INQUIRY commands, the driver frees up the memory allocated for an internal HBA port data structure. However, in some places, the reference to the freed memory is not cleared. When the firmware sends the Device Info change event for the same device again, the freed memory is accessed and that leads to memory corruption and OS crash.

The Linux kernel CVE team has assigned CVE-2023-53037 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.1.22 with commit 1f822ae8fb2a20fffa71e9bfa9b203c03d72d3ba
	Fixed in 6.2.9 with commit aa11e4b6cdb403b9fdef6939550f6b36dd61624d
	Fixed in 6.3 with commit 8e45183978d64699df639e795235433a60f35047

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-2023-53037

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_transport.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/1f822ae8fb2a20fffa71e9bfa9b203c03d72d3ba
	https://git.kernel.org/stable/c/aa11e4b6cdb403b9fdef6939550f6b36dd61624d
	https://git.kernel.org/stable/c/8e45183978d64699df639e795235433a60f35047