CVE-2026-89852 PUBLISHED

scsi: qla2xxx: Zero mailbox struct in qla2x00_get_firmware_state()

Assigner: Linux
Reserved: 11.09.2026 Published: 16.09.2026 Updated: 16.09.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 4d4df1932b6b116aecc81039066fec27f2050762 to f8fc5cc6b3284506c6ab83c822c48133377668bb (excl.)
  • affected from 4d4df1932b6b116aecc81039066fec27f2050762 to f29695b1138ae2539c5cd6cdaba9b1b072aaa81a (excl.)
  • affected from 4d4df1932b6b116aecc81039066fec27f2050762 to 13d645a2cdb224d27205368f3e3c68bb160daf97 (excl.)
  • affected from 4d4df1932b6b116aecc81039066fec27f2050762 to 2f847f06bb223aa895eea91fc9e5e2d6314038eb (excl.)
  • affected from 4d4df1932b6b116aecc81039066fec27f2050762 to 1f49e861c18caf8eef7f0ad9a2c5034f88a6ba79 (excl.)
  • affected from 4d4df1932b6b116aecc81039066fec27f2050762 to e6cfb1ee18336aab41a0941d6d3ea5009aaafc05 (excl.)
  • affected from 4d4df1932b6b116aecc81039066fec27f2050762 to 9f31de4d07e4cde91dfc24522993a5fbb4d67083 (excl.)
  • affected from 4d4df1932b6b116aecc81039066fec27f2050762 to 9efaa782845b4d5fb3e01242be0d06ebc7428d8f (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 2.6.26 is affected
  • unaffected from 0 to 2.6.26 (excl.)
  • unaffected from 5.10.270 to 5.10.* (incl.)
  • unaffected from 5.15.221 to 5.15.* (incl.)
  • unaffected from 6.1.188 to 6.1.* (incl.)
  • unaffected from 6.6.157 to 6.6.* (incl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.51 to 6.18.* (incl.)
  • unaffected from 7.2.5 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References