Skip to contentSkip to conversation

CVE-2026-98386: scsi: qla2xxx: Use memset_io() to clear QLAFX00 request ring slot

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 14

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: Use memset_io() to clear QLAFX00 request ring slot

For QLAFX00 the request ring is ioremapped device I/O memory (ha->iobase + req_que_off), not DMA-coherent RAM, which is why the rest of the FX00 path accesses it through memcpy_toio() and the wrt_reg_* helpers. __qla2x00_alloc_iocbs() however zeroed the producer slot with a plain memset(). On architectures such as ARM64 a regular memset() may emit unaligned or block-zeroing instructions (e.g. DC ZVA) that are invalid on Device memory, leading to a synchronous external abort.

Use memset_io() to clear the slot for QLAFX00, matching the I/O accessors used elsewhere on this ring. Other adapters keep the plain memset() on their DMA-coherent rings. The zero-fill is retained for FX00 because its IOCB builders (e.g. qlafx00_fxdisc_iocb()) copy only part of the entry and rely on the unused tail being pre-zeroed.

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

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

	Issue introduced in 3.10 with commit 8ae6d9c7eb1004bc134813287010d57a863ba13b and fixed in 6.12.112 with commit 53eb96c244d150dfb8cc4b5b0492ab53755f3701
	Issue introduced in 3.10 with commit 8ae6d9c7eb1004bc134813287010d57a863ba13b and fixed in 6.18.53 with commit 6ee6dfd922fafd508f6bde16de30dd2db796b7a7
	Issue introduced in 3.10 with commit 8ae6d9c7eb1004bc134813287010d57a863ba13b and fixed in 7.2.7 with commit e41d28d9a242c4005b7d01a7ee7769405a6a2c2e
	Issue introduced in 3.10 with commit 8ae6d9c7eb1004bc134813287010d57a863ba13b and fixed in 7.3-rc1 with commit 626e44f3d8a924a97a3848a9fd45833947e081e9

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

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_iocb.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/53eb96c244d150dfb8cc4b5b0492ab53755f3701
	https://git.kernel.org/stable/c/6ee6dfd922fafd508f6bde16de30dd2db796b7a7
	https://git.kernel.org/stable/c/e41d28d9a242c4005b7d01a7ee7769405a6a2c2e
	https://git.kernel.org/stable/c/626e44f3d8a924a97a3848a9fd45833947e081e9