CVE-2026-89861: scsi: qla2xxx: Hold vport reference in qla24xx_report_id_acquisition()

Published Sep 16, 2026
·
Updated

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

scsi: qla2xxx: Hold vport reference in qla24xxreportidacquisition()

In the format 1 path, the virtual port is located on ha->vplist while holding vportslock, but the lock is dropped before vp is used: qlaupdatehostmap() is called and VPIDXACQUIRED/REGISTERFC4NEEDED/ REGISTERFDMINEEDED are set on vp. No reference is taken across that window, so a concurrent qla24xxdeallocatevpid() can tear the vport down and free it, leading to a use-after-free.

Take a vport reference (vrefcount) under vportslock when the matching vp is found, and drop it after the last use of vp. qla24xxdeallocatevpid() waits for vrefcount to reach zero before unlinking and freeing the vport, so the pointer stays valid. This matches the reference idiom already used by the other ha->vplist traversals.

Event History

Sep 16, 2026
CVE Published
via MITRE·10:31 AM
Data Sourced
via MITRE·10:31 AM
Description

Frequently Asked Questions

1

Which deployments are exposed to this race?

The affected path is the format 1 path when it finds a matching virtual port on ha->vp_list. The race requires that virtual port to be deallocated concurrently after the list lock is released and before its later uses complete.

2

What prevents the use-after-free in the resolved code?

The resolved code increments the virtual port's vref_count while holding vport_slock and releases that reference only after the final use of the virtual port. Deallocation waits for vref_count to reach zero before unlinking and freeing the virtual port.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203