Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 431771AA1D2 for ; Wed, 26 Feb 2025 01:59:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535170; cv=none; b=rdX/ld6WLyZ8YkhSwGYDrEAV4CJjkRWXLpduyB70AF+dH7//FMuFaV0dHNrvABDcOFLolQctSRmdG1Kh0cZBBnXh/cWCu0XwbZ1QlKT8pygjLTPvWPikG9d1mojk0RcEEj05xTjGZ6XxD4NXN4Wzbpv/vDnzcn5ekseSyv1yKGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535170; c=relaxed/simple; bh=PagwpHwoGU0oRTuypZdhn9jai8sU+iR6/4heofaUqn0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aiDbPIAncS5z0i795bcjy8upfRNTjkfzZXi25pTu3gd71u1HHeyKQdaFpnfAERBXEi08ux+z8irwE6FAnaxaXkn88l/H40oNVngKEYpXwGK538vUmsgUiCDtjH18k9su1monvWo5F1FnfJJ2iQDUpIuTvIEAnXos2b8X9bwCaMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EYEUky5p; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="EYEUky5p" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 185A0C4CEDD; Wed, 26 Feb 2025 01:59:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535170; bh=PagwpHwoGU0oRTuypZdhn9jai8sU+iR6/4heofaUqn0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EYEUky5pWPkJJPUAbqdZlJkynDhLU6NDj8HpWhLUltJZZbCadhMzGiFTB+/vDe0DT 5TVtmm1du19PgUwFlG3sDSHOGK8isqE0jjqF/DuxLEBr02p7YKfyS1sX0HgJCpoU1/ DDv4JjwxxB8YvWmT11qGqdqFnGlxP06aqgUktVQA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49157: scsi: qla2xxx: Fix premature hw access after PCI error Date: Wed, 26 Feb 2025 02:56:02 +0100 Message-ID: <2025022610-CVE-2022-49157-59a1@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3874; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PagwpHwoGU0oRTuypZdhn9jai8sU+iR6/4heofaUqn0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SpwcjRevzn/0JCVh9jJ/1gaDiQqs1cxfTN4G7JTMv 5B+sz2zI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaieYdhfr3oLC/+HztCzRN/ r9/JGvdpmsK0UwwLmjT185X1FFz/7SuXTAqa+W1eovYxAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Fix premature hw access after PCI error After a recoverable PCI error has been detected and recovered, qla driver needs to check to see if the error condition still persist and/or wait for the OS to give the resume signal. Sep 8 22:26:03 localhost kernel: WARNING: CPU: 9 PID: 124606 at qla_tmpl.c:440 qla27xx_fwdt_entry_t266+0x55/0x60 [qla2xxx] Sep 8 22:26:03 localhost kernel: RIP: 0010:qla27xx_fwdt_entry_t266+0x55/0x60 [qla2xxx] Sep 8 22:26:03 localhost kernel: Call Trace: Sep 8 22:26:03 localhost kernel: ? qla27xx_walk_template+0xb1/0x1b0 [qla2xxx] Sep 8 22:26:03 localhost kernel: ? qla27xx_execute_fwdt_template+0x12a/0x160 [qla2xxx] Sep 8 22:26:03 localhost kernel: ? qla27xx_fwdump+0xa0/0x1c0 [qla2xxx] Sep 8 22:26:03 localhost kernel: ? qla2xxx_pci_mmio_enabled+0xfb/0x120 [qla2xxx] Sep 8 22:26:03 localhost kernel: ? report_mmio_enabled+0x44/0x80 Sep 8 22:26:03 localhost kernel: ? report_slot_reset+0x80/0x80 Sep 8 22:26:03 localhost kernel: ? pci_walk_bus+0x70/0x90 Sep 8 22:26:03 localhost kernel: ? aer_dev_correctable_show+0xc0/0xc0 Sep 8 22:26:03 localhost kernel: ? pcie_do_recovery+0x1bb/0x240 Sep 8 22:26:03 localhost kernel: ? aer_recover_work_func+0xaa/0xd0 Sep 8 22:26:03 localhost kernel: ? process_one_work+0x1a7/0x360 .. Sep 8 22:26:03 localhost kernel: qla2xxx [0000:42:00.2]-8041:22: detected PCI disconnect. Sep 8 22:26:03 localhost kernel: qla2xxx [0000:42:00.2]-107ff:22: qla27xx_fwdt_entry_t262: dump ram MB failed. Area 5h start 198013h end 198013h Sep 8 22:26:03 localhost kernel: qla2xxx [0000:42:00.2]-107ff:22: Unable to capture FW dump Sep 8 22:26:03 localhost kernel: qla2xxx [0000:42:00.2]-1015:22: cmd=0x0, waited 5221 msecs Sep 8 22:26:03 localhost kernel: qla2xxx [0000:42:00.2]-680d:22: mmio enabled returning. Sep 8 22:26:03 localhost kernel: qla2xxx [0000:42:00.2]-d04c:22: MBX Command timeout for cmd 0, iocontrol=ffffffff jiffies=10140f2e5 mb[0-3]=[0xffff 0xffff 0xffff 0xffff] The Linux kernel CVE team has assigned CVE-2022-49157 to this issue. Affected and fixed versions =========================== Fixed in 5.15.33 with commit 5ef6319f9882699613d5182fbd7929b017e8c5ab Fixed in 5.16.19 with commit d7994dff9071555a959a168f9184dd9abae68a6b Fixed in 5.17.2 with commit 6c125fd5ad035777f7b471553f7ddda76e8e7136 Fixed in 5.18 with commit e35920ab7874d5e2faeb4f958a74bfa793f1ce5a 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-49157 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 drivers/scsi/qla2xxx/qla_tmpl.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/5ef6319f9882699613d5182fbd7929b017e8c5ab https://git.kernel.org/stable/c/d7994dff9071555a959a168f9184dd9abae68a6b https://git.kernel.org/stable/c/6c125fd5ad035777f7b471553f7ddda76e8e7136 https://git.kernel.org/stable/c/e35920ab7874d5e2faeb4f958a74bfa793f1ce5a