Description (CNA)
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().
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected ec89146215d124c429bff84b498dccdc4919ffa7 before 2ecc30066c2284d2ed11bbd576ec97156b384054; affected ec89146215d124c429bff84b498dccdc4919ffa7 before 5dfc77099c7d9fde9520a229794b0154d7ccccc1; affected ec89146215d124c429bff84b498dccdc4919ffa7 before d6e2411516bb95e52cb74c9c56b60ad2548a2730; affected ec89146215d124c429bff84b498dccdc4919ffa7 before 9fc03be982763a131913f84fe73b240ae45bca37; affected ec89146215d124c429bff84b498dccdc4919ffa7 before a152edab3854f01dd2daf3eaf8f32cbabdb3834e |
| Linux / Linux | affected 4.8; unaffected 0 before 4.8; unaffected 6.6.160 through 6.6.*; unaffected 6.12.112 through 6.12.*; unaffected 6.18.53 through 6.18.*; unaffected 7.2.5 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/2ecc30066c2284d2ed11bbd576ec97156b384054
- https://git.kernel.org/stable/c/5dfc77099c7d9fde9520a229794b0154d7ccccc1
- https://git.kernel.org/stable/c/d6e2411516bb95e52cb74c9c56b60ad2548a2730
- https://git.kernel.org/stable/c/9fc03be982763a131913f84fe73b240ae45bca37
- https://git.kernel.org/stable/c/a152edab3854f01dd2daf3eaf8f32cbabdb3834e