Skip to contentSkip to conversation

CVE-2026-89859: scsi: qla2xxx: Zero dport diagnostics buffer to avoid info leak

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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().

The Linux kernel CVE team has assigned CVE-2026-89859 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.8 with commit ec89146215d124c429bff84b498dccdc4919ffa7 and fixed in 7.2.5 with commit 9fc03be982763a131913f84fe73b240ae45bca37
	Issue introduced in 4.8 with commit ec89146215d124c429bff84b498dccdc4919ffa7 and fixed in 7.3-rc1 with commit a152edab3854f01dd2daf3eaf8f32cbabdb3834e

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-89859

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_bsg.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/9fc03be982763a131913f84fe73b240ae45bca37
	https://git.kernel.org/stable/c/a152edab3854f01dd2daf3eaf8f32cbabdb3834e