Skip to contentSkip to conversation

CVE-2023-53512: scsi: mpt3sas: Fix a memory leak

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 1, 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: mpt3sas: Fix a memory leak

Add a forgotten kfree().

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

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

	Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 5.10.173 with commit 30c7c72b6cf9d8c95f9b219c9d2e4e31b15bebe5
	Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 5.15.99 with commit 378cc0eec4aa546ce1ae17515e2dfab719d4fb1e
	Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 6.1.16 with commit 847cdbdcd5a24c1eec9595161a23b88fef91ff42
	Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 6.2.3 with commit 28137ea3eb05a87329a7154a8ff410d9e8bcc0a5
	Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 6.3 with commit 54dd96015e8d7a2a07359e2dfebf05b529d1780c

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-53512

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/mpt3sas/mpt3sas_base.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/30c7c72b6cf9d8c95f9b219c9d2e4e31b15bebe5
	https://git.kernel.org/stable/c/378cc0eec4aa546ce1ae17515e2dfab719d4fb1e
	https://git.kernel.org/stable/c/847cdbdcd5a24c1eec9595161a23b88fef91ff42
	https://git.kernel.org/stable/c/28137ea3eb05a87329a7154a8ff410d9e8bcc0a5
	https://git.kernel.org/stable/c/54dd96015e8d7a2a07359e2dfebf05b529d1780c