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 289423376A5 for ; Wed, 24 Dec 2025 13:07:54 +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=1766581675; cv=none; b=k90ZVdUuJJymWJB8bS9+KLQlQVa0ziwk4QoS1FiVAbMvleG6xLULMs0rVLj3p/EWzBnQnHbHQsK83+qlCxc95ByYtbQAzOu+OwC//sLYVVTu6xC0n60RWJrCSGn1bD4/mcwWqbzfYAEGQv9TIlE0eBGcJfaBNU4heHsAN1zpNvQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581675; c=relaxed/simple; bh=TOFe4dHw6D/Bz93MhkGgg2bAatVS0sYZDkk+1+Ry34E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ggNdKlnIC0Zi5UNQPKLcMQDmx662qzRI1OE14kG3FPTOJM/ZnkqeJ6SfC8TCb48KaGqM+YIHPPAm6E77W/Kw4w8+duwbw/fWnwTnYicGVWUAySzr179HdVbsMws+742GN5zJwZ/LNK+5Yt7GRquJxWEFpMxYNUwjVkMMLGOAwv8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dsShxQLT; 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="dsShxQLT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C0D1C4CEFB; Wed, 24 Dec 2025 13:07:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581674; bh=TOFe4dHw6D/Bz93MhkGgg2bAatVS0sYZDkk+1+Ry34E=; h=From:To:Cc:Subject:Date:Reply-To:From; b=dsShxQLTyTtJipurtvM99YCv2kxIUOYldl9xFi5lp/PyZ6EVqePQGTGh92/8xv6qc 3Th4jUtjs6zL0cMf84f4EwZsza/Ndjx2mQzeGtXyMYUDczI3mNgkxOaA2jprvAlVBO 9ybVwtagxsK0/VaLKEv88fJcceypoeachRx9ga78= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50744: scsi: lpfc: Fix hard lockup when reading the rx_monitor from debugfs Date: Wed, 24 Dec 2025 14:05:55 +0100 Message-ID: <2025122449-CVE-2022-50744-bc80@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3061; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xfW4ltbGoMARazubO+Ib6aAJXiEOwh81VA7RYTUU0ZE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT3UL8r33ffsXVLlmx/afOzamqPOe2a8apNH8vOSwQ wKX1fSGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIVTLD/AS3Taz9LT0ME+xS XW23hl/qfX9GiGG++zb/t5dn/TyQuN3u3i7LqqWWKxWDAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Fix hard lockup when reading the rx_monitor from debugfs During I/O and simultaneous cat of /sys/kernel/debug/lpfc/fnX/rx_monitor, a hard lockup similar to the call trace below may occur. The spin_lock_bh in lpfc_rx_monitor_report is not protecting from timer interrupts as expected, so change the strength of the spin lock to _irq. Kernel panic - not syncing: Hard LOCKUP CPU: 3 PID: 110402 Comm: cat Kdump: loaded exception RIP: native_queued_spin_lock_slowpath+91 [IRQ stack] native_queued_spin_lock_slowpath at ffffffffb814e30b _raw_spin_lock at ffffffffb89a667a lpfc_rx_monitor_record at ffffffffc0a73a36 [lpfc] lpfc_cmf_timer at ffffffffc0abbc67 [lpfc] __hrtimer_run_queues at ffffffffb8184250 hrtimer_interrupt at ffffffffb8184ab0 smp_apic_timer_interrupt at ffffffffb8a026ba apic_timer_interrupt at ffffffffb8a01c4f [End of IRQ stack] apic_timer_interrupt at ffffffffb8a01c4f lpfc_rx_monitor_report at ffffffffc0a73c80 [lpfc] lpfc_rx_monitor_read at ffffffffc0addde1 [lpfc] full_proxy_read at ffffffffb83e7fc3 vfs_read at ffffffffb833fe71 ksys_read at ffffffffb83402af do_syscall_64 at ffffffffb800430b entry_SYSCALL_64_after_hwframe at ffffffffb8a000ad The Linux kernel CVE team has assigned CVE-2022-50744 to this issue. Affected and fixed versions =========================== Fixed in 5.15.86 with commit 2cf66428a2545bb33beb9624124a2377468bb478 Fixed in 6.0.16 with commit cd542900ee5147028bbe603b238efcab8d720838 Fixed in 6.1.2 with commit 39761417ea7b654217d6d9085afbf7c87ba3675d Fixed in 6.2 with commit c44e50f4a0ec00c2298f31f91bc2c3e9bbd81c7e 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-50744 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_sli.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/2cf66428a2545bb33beb9624124a2377468bb478 https://git.kernel.org/stable/c/cd542900ee5147028bbe603b238efcab8d720838 https://git.kernel.org/stable/c/39761417ea7b654217d6d9085afbf7c87ba3675d https://git.kernel.org/stable/c/c44e50f4a0ec00c2298f31f91bc2c3e9bbd81c7e