scsi: qla2xxx: edif: Fix NULL pointer deref in RX SA delete check
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel e479e9b148456905d12711411484b94083c8ff58, Kernel 2191b0034a2f1307d421782e6eceddf8eec9e7f6, Kernel 75fd6d041c4a325ae37f4683e6678d3015988bb0 and 10 more.
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: edif: Fix NULL pointer deref in RX SA delete check qla_chk_edif_rx_sa_delete_pending() obtains the SCSI command via GET_CMD_SP(sp) and immediately dereferences cmd->sc_data_direction. That command pointer can be NULL: the firmware may post a status completion for a command that has already been returned or aborted. The caller qla2x00_status_entry() acknowledges this on the very same status path, re-fetching GET_CMD_SP(sp) and bailing out with the "Command already returned" message when it is NULL -- but that check runs only after qla_chk_edif_rx_sa_delete_pending() has already dereferenced the pointer, so a NULL cmd crashes the kernel in interrupt context. Return early when cmd is NULL, before touching cmd->sc_data_direction.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=dd30706e73b70d67e88fdaca688db7a3374fd5de <e479e9b148456905d12711411484b94083c8ff58, >=dd30706e73b70d67e88fdaca688db7a3374fd5de <2191b0034a2f1307d421782e6eceddf8eec9e7f6, >=dd30706e73b70d67e88fdaca688db7a3374fd5de <75fd6d041c4a325ae37f4683e6678d3015988bb0, >=dd30706e73b70d67e88fdaca688db7a3374fd5de <94bfb61478bcb207d27f8cd24fd231421059519f, >=dd30706e73b70d67e88fdaca688db7a3374fd5de <96eb8a3fc9f7fe7ba32679fcf1d2fd7d251e7a8b, >=dd30706e73b70d67e88fdaca688db7a3374fd5de <c20ee380ca59c5a8646750c4849969a815924e2e, >=dd30706e73b70d67e88fdaca688db7a3374fd5de <de0c8ef3b900c5e971c82ef38c6f5c22c5f3d8c1, =5.15 | e479e9b148456905d12711411484b94083c8ff58, 2191b0034a2f1307d421782e6eceddf8eec9e7f6, 75fd6d041c4a325ae37f4683e6678d3015988bb0, 94bfb61478bcb207d27f8cd24fd231421059519f, 96eb8a3fc9f7fe7ba32679fcf1d2fd7d251e7a8b, c20ee380ca59c5a8646750c4849969a815924e2e, de0c8ef3b900c5e971c82ef38c6f5c22c5f3d8c1 |
| linux-kernel: Kernel | >=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, >=5.15.0 <5.15.221 | 6.1.188, 6.18.51, 7.2.5, 6.6.157, 6.12.110, 5.15.221 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket