scsi: qla2xxx: Zero mailbox struct in qla2x00_get_firmware_state()
- 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 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- 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 mailbox struct in qla2x00_get_firmware_state() The mbx_cmd_t is allocated on the stack but left uninitialized. qla2x00_mailbox_command() has several early-return paths (PCI permanent failure, device failed, EEH busy, ISP abort pending, mailbox access timeout, purge mbox) that return without writing the input mailbox registers back into mcp->mb[]. qla2x00_get_firmware_state() then unconditionally copies mcp->mb[1..6] (and mb[12]) into the caller's states[] array regardless of the return value. On such a failure the copied values are uninitialized kernel stack memory, which is then exposed to userspace via the fw_state and mpi_fw_state sysfs handlers. Zero the mailbox struct so a failed query yields deterministic zeroed state instead of leaking stack contents.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 4d4df1932b6b116aecc81039066fec27f2050762 · fixed in f8fc5cc6b3284506c6ab83c822c48133377668bb; From 4d4df1932b6b116aecc81039066fec27f2050762 · fixed in f29695b1138ae2539c5cd6cdaba9b1b072aaa81a; From 4d4df1932b6b116aecc81039066fec27f2050762 · fixed in 13d645a2cdb224d27205368f3e3c68bb160daf97; From 4d4df1932b6b116aecc81039066fec27f2050762 · fixed in 2f847f06bb223aa895eea91fc9e5e2d6314038eb; From 4d4df1932b6b116aecc81039066fec27f2050762 · fixed in 1f49e861c18caf8eef7f0ad9a2c5034f88a6ba79; From 4d4df1932b6b116aecc81039066fec27f2050762 · fixed in e6cfb1ee18336aab41a0941d6d3ea5009aaafc05; From 4d4df1932b6b116aecc81039066fec27f2050762 · fixed in 9f31de4d07e4cde91dfc24522993a5fbb4d67083; From 4d4df1932b6b116aecc81039066fec27f2050762 · fixed in 9efaa782845b4d5fb3e01242be0d06ebc7428d8f
- Linux Linux
2.6.26
- KernelLinux
From 2.6.26 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5
References 8
git.kernel.org
- stable/c/f8fc5cc6b3284506c6ab83c822c48133377668bb
- stable/c/f29695b1138ae2539c5cd6cdaba9b1b072aaa81a
- stable/c/13d645a2cdb224d27205368f3e3c68bb160daf97
- stable/c/2f847f06bb223aa895eea91fc9e5e2d6314038eb
- stable/c/1f49e861c18caf8eef7f0ad9a2c5034f88a6ba79
- stable/c/e6cfb1ee18336aab41a0941d6d3ea5009aaafc05
- stable/c/9f31de4d07e4cde91dfc24522993a5fbb4d67083
- stable/c/9efaa782845b4d5fb3e01242be0d06ebc7428d8f