scsi: qla2xxx: Serialize flash version read in reset handler
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8c2cf7d4e387d003259488522523807f25576427 · < 8d116137119371349fb09685fe05413d8fc92efe| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Serialize flash version read in reset handler
The "update cache versions without reset" sysfs reset operation (0x20261) calls get_flash_version(), which reads hardware flash registers, without holding ha->optrom_mutex. The VPD update path serializes the same call under optrom_mutex, so this reset path can interleave its flash register accesses with a concurrent VPD or optrom flash operation and corrupt the reads.
Hold ha->optrom_mutex across the get_flash_version() call to match the VPD update path.
From the CVE record · Linux
The qla2xxx sysfs reset operation reads flash version registers without holding the mutex used by other flash operations. A local operation can therefore overlap with a VPD or optrom flash operation and corrupt the flash version reads; the input does not specify access requirements.
Engineers running Linux kernels with the qla2xxx driver should check their kernel versions; affected versions are not specified.