scsi: qla2xxx: Hold vport_slock for host map update in report ID acquisition
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e8f1b0cb9782338c6341ceed816e9c1243743cdd, Kernel 6ed66e2a67bbd22877008ff9aa64bd574a7fc011, Kernel 776e4e8cbcf155302f430ce9793d1502e3c113a0 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Hold vport_slock for host map update in report ID acquisition qla24xx_report_id_acquisition() format-1 handling drops vport_slock after taking the vport reference and then calls qla_update_host_map() without the lock. That reaches qla_update_vp_map(), which mutates the ha->host_map btree via btree_insert32()/btree_update32()/btree_remove32() and is documented to require vport_slock to be held by the caller. Running it unlocked can race concurrent host_map updates and corrupt the btree. The format-2 path in the same function already wraps its host_map update (SET_AL_PA) in vport_slock; the format-1 path is the lone outlier. Hold vport_slock across the format-1 qla_update_host_map() call to honor the documented locking contract. The vref_count taken in the loop keeps the vport valid, so this only adds the missing host_map serialization.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=430eef03a763e5e76a371ba6d02779ae4a64b6ea <e8f1b0cb9782338c6341ceed816e9c1243743cdd, >=430eef03a763e5e76a371ba6d02779ae4a64b6ea <6ed66e2a67bbd22877008ff9aa64bd574a7fc011, >=430eef03a763e5e76a371ba6d02779ae4a64b6ea <776e4e8cbcf155302f430ce9793d1502e3c113a0, >=430eef03a763e5e76a371ba6d02779ae4a64b6ea <7944039ba9cb5c3a935d17c91004e3b8649ff58e, >=430eef03a763e5e76a371ba6d02779ae4a64b6ea <7d0b3f745efb24c0aac5e06b49b3420bc65d23b9, =6.3 | e8f1b0cb9782338c6341ceed816e9c1243743cdd, 6ed66e2a67bbd22877008ff9aa64bd574a7fc011, 776e4e8cbcf155302f430ce9793d1502e3c113a0, 7944039ba9cb5c3a935d17c91004e3b8649ff58e, 7d0b3f745efb24c0aac5e06b49b3420bc65d23b9 |
| linux-kernel: Kernel | >=6.19.0 <7.2.5, >=6.3.0 <6.6.157, >=6.7.0 <6.12.110, >=6.13.0 <6.18.51 | 7.2.5, 6.6.157, 6.12.110, 6.18.51 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket