scsi: qla2xxx: Avoid req_q_map double-read in qla2x00_error_entry()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fe04b31e386aee4cc3a18f07462af146037dc389, Kernel 1b995cf4157465357d66ba096e7cdaafab9972e7, Kernel 1c90b74e484ba48f31944fe04963d99e01ac3767 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Avoid req_q_map double-read in qla2x00_error_entry() qla2x00_error_entry() reads ha->req_q_map[que] twice: once for the NULL check and again when assigning it to req. The map slot is cleared by qla25xx_free_req_que() (ha->req_q_map[que_id] = NULL under mq_lock) during queue teardown, while the response-queue interrupt that drives qla2x00_error_entry() is still registered (the IRQ is released later in qla25xx_free_rsp_que()). If the slot is set to NULL between the two reads, req becomes NULL and is dereferenced. Read the slot once into req and NULL-check the local before use. mq_lock is a mutex and cannot be taken from interrupt context, so the single read plus local check is the appropriate fix for the reported NULL dereference.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b <fe04b31e386aee4cc3a18f07462af146037dc389, >=a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b <1b995cf4157465357d66ba096e7cdaafab9972e7, >=a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b <1c90b74e484ba48f31944fe04963d99e01ac3767, >=a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b <35124cfa9898b2088ee72859e573e0876aff66fc, >=a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b <5dd9bec8004ba93cee8b689bf54ce294f59e5e3c, >=a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b <c845f2597787ef70159a32566669e308b2807a56, >=a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b <d79376fbd2a076de82c1cd8aa0b600b300c75a44, >=a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b <deb8abde83a799d2501f3977f6d6051000253f5e, =3.4 | fe04b31e386aee4cc3a18f07462af146037dc389, 1b995cf4157465357d66ba096e7cdaafab9972e7, 1c90b74e484ba48f31944fe04963d99e01ac3767, 35124cfa9898b2088ee72859e573e0876aff66fc, 5dd9bec8004ba93cee8b689bf54ce294f59e5e3c, c845f2597787ef70159a32566669e308b2807a56, d79376fbd2a076de82c1cd8aa0b600b300c75a44, deb8abde83a799d2501f3977f6d6051000253f5e |
| linux-kernel: Kernel | >=5.11.0 <5.15.221, >=5.16.0 <6.1.188, >=6.13.0 <6.18.51, >=6.19.0 <7.2.5, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=3.4.0 <5.10.270 | 5.15.221, 6.1.188, 6.18.51, 7.2.5, 6.6.157, 6.12.110, 5.10.270 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket