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 340373B7765 for ; Wed, 25 Mar 2026 10:31: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=1774434714; cv=none; b=fB/Jbz6CD0lG2JlbBkFVjn2+fCnSR4tY6DdeJiNEP4G9AXA+hlypjTeZj9PbN0B38zNrjiO1MlAMl5ym+L72jbDU3uLvHxv9WvI4kHUJ3wan0xjznQyLOcPuG9/KJlRMchXWl71D9oTGyvM5lLyJaFlgrBHOn7B8hLs6Nn/1j8Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434714; c=relaxed/simple; bh=FIGhJc6/hVwSUjJ7WZhaUcu15zR5xx9gAX4oMcEDqXM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dgYALGWF8aAtw1zz/zEXKVn6a/IyAoCXwxMnpPDy//7/0CFP+GFUcU3fprJKa3WWyrIJPtKL7shgtHPMrg4lJqRJpRIEX1icVhM2UhvOpFzeIR7ADQd/hP6R0koy29Eqjm5GBHSBnACqPCHDOXRMTzHBZdbDgCLGOyDjZyBwaGI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iiXTJzHA; 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="iiXTJzHA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AADB4C4CEF7; Wed, 25 Mar 2026 10:31:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434714; bh=FIGhJc6/hVwSUjJ7WZhaUcu15zR5xx9gAX4oMcEDqXM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=iiXTJzHA8XAZbEjtrGuk3UzI21H87EXD+N/hn/lEcGOvd0O/3dJ5uZxTubDBshm45 fNgk9TX0bXQ902PZuQspvqltljpuFEa3KV7G7G+To8XsGhCkX/mDk5ownsk2pSNKeJ 5OS9Dm0SPIOUTGK4ET13kclUYv+zAAj7NECSL+Rc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23376: nvmet-fcloop: Check remoteport port_state before calling done callback Date: Wed, 25 Mar 2026 11:28:00 +0100 Message-ID: <2026032542-CVE-2026-23376-114a@gregkh> X-Mailer: git-send-email 2.53.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=2683; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mgMvseJXPGdneEQtnaCzLyyvPbuf2n4aqmEVGDxfxV8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHdyRxVM76uIP7X+n5R8ctv/3zSF529HOoW8b0iRcEn Jt9Fk6M64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJuK5kWLB4bfZuFq3YGhan J3P/vEw1SZzVc4BhfvDBvq1HGo44iHuwHA5kaMu5JL1lDwA= 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: nvmet-fcloop: Check remoteport port_state before calling done callback In nvme_fc_handle_ls_rqst_work, the lsrsp->done callback is only set when remoteport->port_state is FC_OBJSTATE_ONLINE. Otherwise, the nvme_fc_xmt_ls_rsp's LLDD call to lport->ops->xmt_ls_rsp is expected to fail and the nvme-fc transport layer itself will directly call nvme_fc_xmt_ls_rsp_free instead of relying on LLDD's done callback to free the lsrsp resources. Update the fcloop_t2h_xmt_ls_rsp routine to check remoteport->port_state. If online, then lsrsp->done callback will free the lsrsp. Else, return -ENODEV to signal the nvme-fc transport to handle freeing lsrsp. The Linux kernel CVE team has assigned CVE-2026-23376 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 10c165af35d225eb033f4edc7fcc699a8d2d533d and fixed in 6.18.17 with commit f30b95159a53e72529a9ca1667f11cd1970240a7 Issue introduced in 6.18 with commit 10c165af35d225eb033f4edc7fcc699a8d2d533d and fixed in 6.19.7 with commit 31d3817bcd9e192b30abe3cf4b68f69d48864dd2 Issue introduced in 6.18 with commit 10c165af35d225eb033f4edc7fcc699a8d2d533d and fixed in 7.0-rc3 with commit dd677d0598387ea623820ab2bd0e029c377445a3 Issue introduced in 6.17.3 with commit 2cf857075bcc8e83c4aa5fe7d8f1efd6af51e04e 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-2026-23376 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/nvme/target/fcloop.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/f30b95159a53e72529a9ca1667f11cd1970240a7 https://git.kernel.org/stable/c/31d3817bcd9e192b30abe3cf4b68f69d48864dd2 https://git.kernel.org/stable/c/dd677d0598387ea623820ab2bd0e029c377445a3