CVE-2026-89854

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

State
Published
Severity
7.8 High
Published
Sep 16, 2026
Updated
Oct 19, 2026
Reserved
Sep 11, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 to before 8c1ebcade6aac58137f2645b579894301febabf3Affected
  • fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 to before 1d8bbc4344b9367d9d54731475d745fbc9ea28f2Affected
  • fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 to before 2c3b17ee53f034936f7398dbf4d143e608b7c35cAffected
  • fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 to before ae09260be7454ed7630a913f147591a25e3a9d09Affected
  • fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 to before fcf0804dfe05862007189ac9dc4dc2063be36de1Affected
  • fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 to before 8286a9095fb59751fba171afa2b4f590271c87d5Affected
  • fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 to before 122bf170c94a3797531b12fee580639a5dc893edAffected
  • fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 to before 33d102102d925357c5fd172dd6672a27d74b3215Affected
LinuxLinux
  • 3.14Affected
  • before 3.14Not affected
  • 5.10.270 through 5.10.*Not affected
  • 5.15.221 through 5.15.*Not affected
  • 6.1.188 through 6.1.*Not affected
  • 6.6.157 through 6.6.*Not affected
  • 6.12.110 through 6.12.*Not affected
  • 6.18.51 through 6.18.*Not affected
  • 7.2.5 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.