scsi: qla2xxx: Zero dport diagnostics buffer to avoid info leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ec89146215d124c429bff84b498dccdc4919ffa7 · < d6e2411516bb95e52cb74c9c56b60ad2548a2730| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Zero dport diagnostics buffer to avoid info leak
qla2x00_do_dport_diagnostics() allocates the qla_dport_diag response buffer with kmalloc_obj() (non-zeroing) and, on success, copies the full sizeof(*dd) back to user space via sg_copy_from_buffer(). The inbound sg_copy_to_buffer() only fills as many bytes as the user request payload provides, and qla26xx_dport_diagnostics() zeroes only dd->buf. The options and unused[] fields are therefore copied out uninitialized, leaking kernel heap contents to user space.
Allocate with kzalloc_obj(), matching qla2x00_do_dport_diagnostics_v2().
From the CVE record · Linux
The qla2xxx dport diagnostics response buffer is not fully initialized before it is copied to user space. A local user able to invoke this diagnostics path can receive uninitialized kernel heap contents in the options and unused fields.
Engineers running Linux kernels with the qla2xxx driver should check whether their kernel includes the fix; affected versions were not specified.