Skip to contentSkip to conversation

CVE-2022-49119: scsi: pm8001: Fix memory leak in pm8001_chip_fw_flash_update_req()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 26, 2025

lore
Share & tools
lore
#0 lore raw

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

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

scsi: pm8001: Fix memory leak in pm8001_chip_fw_flash_update_req()

In pm8001_chip_fw_flash_update_build(), if pm8001_chip_fw_flash_update_build() fails, the struct fw_control_ex allocated must be freed.

The Linux kernel CVE team has assigned CVE-2022-49119 to this issue.

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

	Fixed in 5.10.111 with commit d83574666bac4b1462e90df393fbed6c5f57d1a3
	Fixed in 5.15.34 with commit e5ecdb01952f230921aa8163d8d7f4c97c925ed8
	Fixed in 5.16.20 with commit fe5b8ea5583b5c3f6f68e06acba50387edf3b5d5
	Fixed in 5.17.3 with commit a25ed5f21f94f9ae4bcc8dd747e978668890c921
	Fixed in 5.18 with commit f792a3629f4c4aa4c3703d66b43ce1edcc3ec09a

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-2022-49119

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/pm8001/pm8001_hwi.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/d83574666bac4b1462e90df393fbed6c5f57d1a3
	https://git.kernel.org/stable/c/e5ecdb01952f230921aa8163d8d7f4c97c925ed8
	https://git.kernel.org/stable/c/fe5b8ea5583b5c3f6f68e06acba50387edf3b5d5
	https://git.kernel.org/stable/c/a25ed5f21f94f9ae4bcc8dd747e978668890c921
	https://git.kernel.org/stable/c/f792a3629f4c4aa4c3703d66b43ce1edcc3ec09a