From mboxrd@z Thu Jan 1 00:00:00 1970 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 6F595218E97 for ; Wed, 26 Feb 2025 02:15:31 +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=1740536131; cv=none; b=Z0ViWAG7080kztRf6mdE8DNUXQSi9ugvIVSy7l7UZQXtUeKx20hlgVw2HEtc7txMtyhir8ldxZLynUEFtF3vnTTKuQfncLJPKQm9jje8iRlneU/Lva+8uixTPgbwRYgPSsMXuv+4hNPXkahVqlcpt+NDbA3B8WnVcHhGm+ooHck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536131; c=relaxed/simple; bh=vkDxWQ08LiWHDPttzcvtqxYUuJx3xEYGbb4FVri4vKM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QwAVUtZFY0Kuhiq1Z1QItQ8aOisIRkwu2ItxyH6QEP4EyIYWWfDQGd39HdQa/VHCo1JplJAKNEddDfxAoIMYQ849VQ8hNhnxphhg6vRwhkFaXPk6q9bWPfNGBFGqrnxG5m4mxOgjKBKcaIjZXTi/dVLcVwEs2zecZGtnZ85vblw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MzpKHnV7; 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="MzpKHnV7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CB31C4CEE6; Wed, 26 Feb 2025 02:15:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536131; bh=vkDxWQ08LiWHDPttzcvtqxYUuJx3xEYGbb4FVri4vKM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MzpKHnV794OqZv03geeV/2Qnp8Z97vx2Si0xZrRmbboWe8hzijlWBWgcEoBDUL2tR R6jMxbmFDe6yYCXJp4H/qNa1KUzmTVGCiIX8hoBEQ81+W6m6INbPft06CdUCQqOvIx ahOfRVH5B9yYE5qG6btTuTe0mD8Rq2/PAejeCZt4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49537: scsi: lpfc: Fix call trace observed during I/O with CMF enabled Date: Wed, 26 Feb 2025 03:13:31 +0100 Message-ID: <2025022613-CVE-2022-49537-abf2@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=2482; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vkDxWQ08LiWHDPttzcvtqxYUuJx3xEYGbb4FVri4vKM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7KlhLeJhipoZu6HOLNnD6Lcc707ki7EHsaZ6S2iYeo dDzDA87YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJmZxkWLLY4rK/4Ver+owuM y+tbptoI3v/WwrBgZu6CGxMOXGXirzeQ5fu8bfuG2oVcAA== 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: lpfc: Fix call trace observed during I/O with CMF enabled The following was seen with CMF enabled: BUG: using smp_processor_id() in preemptible code: systemd-udevd/31711 kernel: caller is lpfc_update_cmf_cmd+0x214/0x420 [lpfc] kernel: CPU: 12 PID: 31711 Comm: systemd-udevd kernel: Call Trace: kernel: kernel: dump_stack_lvl+0x44/0x57 kernel: check_preemption_disabled+0xbf/0xe0 kernel: lpfc_update_cmf_cmd+0x214/0x420 [lpfc] kernel: lpfc_nvme_fcp_io_submit+0x23b4/0x4df0 [lpfc] this_cpu_ptr() calls smp_processor_id() in a preemptible context. Fix by using per_cpu_ptr() with raw_smp_processor_id() instead. The Linux kernel CVE team has assigned CVE-2022-49537 to this issue. Affected and fixed versions =========================== Fixed in 5.15.46 with commit ae373d66c427812754db5292eb1481b181daf9ce Fixed in 5.17.14 with commit cd7f899de4b1b829125d72ee6fbfd878b637b815 Fixed in 5.18.3 with commit 517e0835cfb2007713ff16c4fb8479f08b16aec7 Fixed in 5.19 with commit d6d45f67a11136cb88a70a29ab22ea6db8ae6bd5 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-49537 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/lpfc/lpfc_scsi.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/ae373d66c427812754db5292eb1481b181daf9ce https://git.kernel.org/stable/c/cd7f899de4b1b829125d72ee6fbfd878b637b815 https://git.kernel.org/stable/c/517e0835cfb2007713ff16c4fb8479f08b16aec7 https://git.kernel.org/stable/c/d6d45f67a11136cb88a70a29ab22ea6db8ae6bd5