CVE-2026-72087: scsi: lpfc: Fix memory leak in lpfc_sli4_driver_resource_setup()

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026081522-CVE-2026-72087-6081@gregkh>
From: Greg Kroah-Hartman <[email protected]>

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

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

scsi: lpfc: Fix memory leak in lpfc_sli4_driver_resource_setup()

The memory allocated for mboxq using mempool_alloc() is not freed in
some of the early exit error paths. Fix that by moving the
mempool_free() call to an earlier point after last use.

The Linux kernel CVE team has assigned CVE-2026-72087 to this issue.


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

	Issue introduced in 5.4 with commit d79c9e9d4b3d9330ee38f392a7c98e0fc494f7f8 and fixed in 6.1.178 with commit 299f5baa1321a0951cc3ebbacc72b67433a65391
	Issue introduced in 5.4 with commit d79c9e9d4b3d9330ee38f392a7c98e0fc494f7f8 and fixed in 6.6.145 with commit c3f4e407661542d1d284fc889cf9f27afd11b3d3
	Issue introduced in 5.4 with commit d79c9e9d4b3d9330ee38f392a7c98e0fc494f7f8 and fixed in 6.12.97 with commit 25cac8a302626f59ca84fa3339e2506c3ac761bc
	Issue introduced in 5.4 with commit d79c9e9d4b3d9330ee38f392a7c98e0fc494f7f8 and fixed in 6.18.40 with commit ed08497977820e002a62cb114440f365cc7a087f
	Issue introduced in 5.4 with commit d79c9e9d4b3d9330ee38f392a7c98e0fc494f7f8 and fixed in 7.1.5 with commit 0ce5a37f7ddf2fc12210e8700350274da79fbb3a
	Issue introduced in 5.4 with commit d79c9e9d4b3d9330ee38f392a7c98e0fc494f7f8 and fixed in 7.2-rc4 with commit 1bd28625e25be549ee7c47532e7c3ef91c682410

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-2026-72087
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/lpfc/lpfc_init.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/299f5baa1321a0951cc3ebbacc72b67433a65391
	https://git.kernel.org/stable/c/c3f4e407661542d1d284fc889cf9f27afd11b3d3
	https://git.kernel.org/stable/c/25cac8a302626f59ca84fa3339e2506c3ac761bc
	https://git.kernel.org/stable/c/ed08497977820e002a62cb114440f365cc7a087f
	https://git.kernel.org/stable/c/0ce5a37f7ddf2fc12210e8700350274da79fbb3a
	https://git.kernel.org/stable/c/1bd28625e25be549ee7c47532e7c3ef91c682410
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.