CVE-2026-89852: scsi: qla2xxx: Zero mailbox struct in qla2x00_get_firmware_state()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-89852 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.26 with commit 4d4df1932b6b116aecc81039066fec27f2050762 and fixed in 5.10.270 with commit f8fc5cc6b3284506c6ab83c822c48133377668bb Issue introduced in 2.6.26 with commit 4d4df1932b6b116aecc81039066fec27f2050762 and fixed in 5.15.221 with commit f29695b1138ae2539c5cd6cdaba9b1b072aaa81a Issue introduced in 2.6.26 with commit 4d4df1932b6b116aecc81039066fec27f2050762 and fixed in 6.1.188 with commit 13d645a2cdb224d27205368f3e3c68bb160daf97 Issue introduced in 2.6.26 with commit 4d4df1932b6b116aecc81039066fec27f2050762 and fixed in 6.6.157 with commit 2f847f06bb223aa895eea91fc9e5e2d6314038eb Issue introduced in 2.6.26 with commit 4d4df1932b6b116aecc81039066fec27f2050762 and fixed in 6.12.110 with commit 1f49e861c18caf8eef7f0ad9a2c5034f88a6ba79 Issue introduced in 2.6.26 with commit 4d4df1932b6b116aecc81039066fec27f2050762 and fixed in 6.18.51 with commit e6cfb1ee18336aab41a0941d6d3ea5009aaafc05 Issue introduced in 2.6.26 with commit 4d4df1932b6b116aecc81039066fec27f2050762 and fixed in 7.2.5 with commit 9f31de4d07e4cde91dfc24522993a5fbb4d67083 Issue introduced in 2.6.26 with commit 4d4df1932b6b116aecc81039066fec27f2050762 and fixed in 7.3-rc1 with commit 9efaa782845b4d5fb3e01242be0d06ebc7428d8f
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-89852
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/scsi/qla2xxx/qla_mbx.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/f8fc5cc6b3284506c6ab83c822c48133377668bb https://git.kernel.org/stable/c/f29695b1138ae2539c5cd6cdaba9b1b072aaa81a https://git.kernel.org/stable/c/13d645a2cdb224d27205368f3e3c68bb160daf97 https://git.kernel.org/stable/c/2f847f06bb223aa895eea91fc9e5e2d6314038eb https://git.kernel.org/stable/c/1f49e861c18caf8eef7f0ad9a2c5034f88a6ba79 https://git.kernel.org/stable/c/e6cfb1ee18336aab41a0941d6d3ea5009aaafc05 https://git.kernel.org/stable/c/9f31de4d07e4cde91dfc24522993a5fbb4d67083 https://git.kernel.org/stable/c/9efaa782845b4d5fb3e01242be0d06ebc7428d8f