Skip to contentSkip to conversation

CVE-2022-50098: scsi: qla2xxx: Fix crash due to stale SRB access around I/O timeouts

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 18, 2025

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: Fix crash due to stale SRB access around I/O timeouts

Ensure SRB is returned during I/O timeout error escalation. If that is not possible fail the escalation path.

Following crash stack was seen:

BUG: unable to handle kernel paging request at 0000002f56aa90f8
IP: qla_chk_edif_rx_sa_delete_pending+0x14/0x30 [qla2xxx]
Call Trace:
 ? qla2x00_status_entry+0x19f/0x1c50 [qla2xxx]
 ? qla2x00_start_sp+0x116/0x1170 [qla2xxx]
 ? dma_pool_alloc+0x1d6/0x210
 ? mempool_alloc+0x54/0x130
 ? qla24xx_process_response_queue+0x548/0x12b0 [qla2xxx]
 ? qla_do_work+0x2d/0x40 [qla2xxx]
 ? process_one_work+0x14c/0x390

The Linux kernel CVE team has assigned CVE-2022-50098 to this issue.

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

	Issue introduced in 4.10 with commit d74595278f4ab192af66d9e60a9087464638beee and fixed in 5.15.61 with commit b7bae3886a30d258b5b4fee26647043d68da3661
	Issue introduced in 4.10 with commit d74595278f4ab192af66d9e60a9087464638beee and fixed in 5.18.18 with commit b70553175d0f94ebd73670bc16ade90bd7f7d76f
	Issue introduced in 4.10 with commit d74595278f4ab192af66d9e60a9087464638beee and fixed in 5.19.2 with commit 7dcd49c42b14717dd668fd73b503d241fdf82439
	Issue introduced in 4.10 with commit d74595278f4ab192af66d9e60a9087464638beee and fixed in 6.0 with commit c39587bc0abaf16593f7abcdf8aeec3c038c7d52

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-2022-50098

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_os.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/b7bae3886a30d258b5b4fee26647043d68da3661
	https://git.kernel.org/stable/c/b70553175d0f94ebd73670bc16ade90bd7f7d76f
	https://git.kernel.org/stable/c/7dcd49c42b14717dd668fd73b503d241fdf82439
	https://git.kernel.org/stable/c/c39587bc0abaf16593f7abcdf8aeec3c038c7d52