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 DF3171F8EEC for ; Mon, 21 Oct 2024 19:41:24 +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=1729539685; cv=none; b=h0yB5HTKYxCysL5Us+Xwjt+SXYiNXcu5zJjl9Gd3JKfUajjfrAg2/95smqHbUFgjsDIfKofpU3yzu/10z0WJMhq6+jFwtc6H1FSSAR2P3VPrZQaDZ5415R5kNDYclz2tjeaI/KGhOH6NWPIpK19wv+kgjP2pZeudRd4GKldS/Xc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729539685; c=relaxed/simple; bh=oxA50LPzbnEik4QvqZlnlVNXgf62mqpBrzwa7/tYx0o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Qio+xnr7iHzngcYPHQjiLXMfP8Du6lf9mcdUtPu4/EnQrfA2Nmd2PrYplVv7W9o8hHgsaUs6qKTnd7Vcy7M0lGAX5X4ar6LcKkh7Ovn7chcRJ2Xgd/7R8hRi4ZstoUR32agCKxB/zclwNP/Oq9Yr95JdOWLnKohF1PznTIFW6fw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lYX0EfYw; 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="lYX0EfYw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 592C8C4CEC3; Mon, 21 Oct 2024 19:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729539684; bh=oxA50LPzbnEik4QvqZlnlVNXgf62mqpBrzwa7/tYx0o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lYX0EfYwYWwVNv21qdFVqqbu9WTwoYw1P/7zNSCrkuueaai2rC6zh6IquBAr6YrlL Echvsn5RanQWaWpsQCtg+m9D929JwgfA4h1sNVYNZKchy7sMM7LfXspDXLigy0zCRU 3HyYUGVDLcemAK060yt/apHqsllIvwf//lox+ceM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50025: scsi: fnic: Move flush_work initialization out of if block Date: Mon, 21 Oct 2024 21:39:31 +0200 Message-ID: <2024102130-CVE-2024-50025-38d8@gregkh> X-Mailer: git-send-email 2.47.0 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=2830; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oxA50LPzbnEik4QvqZlnlVNXgf62mqpBrzwa7/tYx0o=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliaz+V1uvsCPlSfd74Wikre8xVxqO3Jna+zlqX9tEzm 0Fiu3t/RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk+RXDgrOL//7slHY9uMvS +/Iej1uWgleOOTMsuNo3/6J5jdbEBd02305+e1Pn1WIXDgA= 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: fnic: Move flush_work initialization out of if block After commit 379a58caa199 ("scsi: fnic: Move fnic_fnic_flush_tx() to a work queue"), it can happen that a work item is sent to an uninitialized work queue. This may has the effect that the item being queued is never actually queued, and any further actions depending on it will not proceed. The following warning is observed while the fnic driver is loaded: kernel: WARNING: CPU: 11 PID: 0 at ../kernel/workqueue.c:1524 __queue_work+0x373/0x410 kernel: kernel: queue_work_on+0x3a/0x50 kernel: fnic_wq_copy_cmpl_handler+0x54a/0x730 [fnic 62fbff0c42e7fb825c60a55cde2fb91facb2ed24] kernel: fnic_isr_msix_wq_copy+0x2d/0x60 [fnic 62fbff0c42e7fb825c60a55cde2fb91facb2ed24] kernel: __handle_irq_event_percpu+0x36/0x1a0 kernel: handle_irq_event_percpu+0x30/0x70 kernel: handle_irq_event+0x34/0x60 kernel: handle_edge_irq+0x7e/0x1a0 kernel: __common_interrupt+0x3b/0xb0 kernel: common_interrupt+0x58/0xa0 kernel: It has been observed that this may break the rediscovery of Fibre Channel devices after a temporary fabric failure. This patch fixes it by moving the work queue initialization out of an if block in fnic_probe(). The Linux kernel CVE team has assigned CVE-2024-50025 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 379a58caa199 and fixed in 6.11.4 with commit 6b7836b80061 Issue introduced in 6.8 with commit 379a58caa199 and fixed in 6.12-rc3 with commit f30e5f77d2f2 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-2024-50025 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/fnic/fnic_main.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/6b7836b80061bf1accc5d78b12bc086aed252388 https://git.kernel.org/stable/c/f30e5f77d2f205ac14d09dec40fd4bb76712f13d