Skip to contentSkip to conversation

CVE-2026-89854: scsi: qla2xxx: Fix cs84xx use-after-free on host teardown

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

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: qla2xxx: Fix cs84xx use-after-free on host teardown

qla84xx_put_chip() drops the last reference to ha->cs84xx and frees it via __qla84xx_chip_release() without clearing ha->cs84xx. During teardown it ran before scsi_remove_host(), which is what removes the 84xx_fw_version host sysfs attribute. A concurrent read of that attribute in the window between the two calls executes qla24xx_84xx_fw_version_show(), which dereferences the freed ha->cs84xx, resulting in a use-after-free.

Move qla84xx_put_chip() to after scsi_remove_host() in both qla2x00_remove_one() and qla2x00_disable_board_on_pci_error(). Once scsi_remove_host() returns, the sysfs attribute is gone and kernfs has drained any in-flight show(), so no reader can touch cs84xx; the put still runs before the host and ha are freed.

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

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

	Issue introduced in 3.14 with commit fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 and fixed in 5.10.270 with commit 8c1ebcade6aac58137f2645b579894301febabf3
	Issue introduced in 3.14 with commit fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 and fixed in 5.15.221 with commit 1d8bbc4344b9367d9d54731475d745fbc9ea28f2
	Issue introduced in 3.14 with commit fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 and fixed in 6.1.188 with commit 2c3b17ee53f034936f7398dbf4d143e608b7c35c
	Issue introduced in 3.14 with commit fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 and fixed in 6.6.157 with commit ae09260be7454ed7630a913f147591a25e3a9d09
	Issue introduced in 3.14 with commit fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 and fixed in 6.12.110 with commit fcf0804dfe05862007189ac9dc4dc2063be36de1
	Issue introduced in 3.14 with commit fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 and fixed in 6.18.51 with commit 8286a9095fb59751fba171afa2b4f590271c87d5
	Issue introduced in 3.14 with commit fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 and fixed in 7.2.5 with commit 122bf170c94a3797531b12fee580639a5dc893ed
	Issue introduced in 3.14 with commit fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 and fixed in 7.3-rc1 with commit 33d102102d925357c5fd172dd6672a27d74b3215

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

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/qla2xxx/qla_os.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/8c1ebcade6aac58137f2645b579894301febabf3
	https://git.kernel.org/stable/c/1d8bbc4344b9367d9d54731475d745fbc9ea28f2
	https://git.kernel.org/stable/c/2c3b17ee53f034936f7398dbf4d143e608b7c35c
	https://git.kernel.org/stable/c/ae09260be7454ed7630a913f147591a25e3a9d09
	https://git.kernel.org/stable/c/fcf0804dfe05862007189ac9dc4dc2063be36de1
	https://git.kernel.org/stable/c/8286a9095fb59751fba171afa2b4f590271c87d5
	https://git.kernel.org/stable/c/122bf170c94a3797531b12fee580639a5dc893ed
	https://git.kernel.org/stable/c/33d102102d925357c5fd172dd6672a27d74b3215