scsi: qla2xxx: Zero dport diagnostics buffer to avoid info leak
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.112, 6.18.53, 7.2.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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().
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
4.8
- KernelLinux
From 4.8.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.112; From 6.13.0 · fixed in 6.18.53; From 6.19.0 · fixed in 7.2.5
References 8
git.kernel.org
- stable/c/eeef4fa993b3f962de9b45999f12ff25a5c79ce7
- stable/c/504b177ad58c45be7e1cfa81f9b42f7f040737c5
- stable/c/c3e4c716909a053391b06a9a816c8588b652e3d2
- stable/c/2ecc30066c2284d2ed11bbd576ec97156b384054
- stable/c/5dfc77099c7d9fde9520a229794b0154d7ccccc1
- stable/c/d6e2411516bb95e52cb74c9c56b60ad2548a2730
- stable/c/9fc03be982763a131913f84fe73b240ae45bca37
- stable/c/a152edab3854f01dd2daf3eaf8f32cbabdb3834e