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 7F3D115350B for ; Mon, 29 Jul 2024 15:04:51 +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=1722265491; cv=none; b=nGwrvDy8nELjT8gQl8SEoGeIfYq2uR+uieefnoqONGOq8p4oaG7FuCjX5d0cBFEUxkUOILp5i30bMGYtquZdmu61UBcGonRopFY68YmPgljyWDodcOZ8oRypGJumL9pbcDaaRastIS2Io55IwclcHz7Hl+gPNP2PYl/w8TrIELI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722265491; c=relaxed/simple; bh=D1QCrUYgUS2oDK5RuYvXl8KMUznqJ8Bh6Oeq3vkzWuk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Oz+75/DDwoSOR+/zFaryGboCZe7ANy3j7WLLDWYN0mASQR7bbpT8OdpOlJcGBkJX+12pFsg0jHBWzSstwBbJraK/hLsciNRWltQ9ddXfGq8jqdPiaKvmvNzbqkmwFA5Vjd1NzDai/ZmLGpVAJREYCWo1z3S2wTX5xYmGfRz2/6c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YnknL6/C; 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="YnknL6/C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A67C1C4AF09; Mon, 29 Jul 2024 15:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722265491; bh=D1QCrUYgUS2oDK5RuYvXl8KMUznqJ8Bh6Oeq3vkzWuk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YnknL6/CNXxvxhTeDnjWNG0Cp1bObjG8rUjiHDIPzC66iHt/Lhfg9ucXGlaSBEA42 mSP6GZWT10oWBYJg629offehYvUwYcaTfk3mF1TLFmgvE29MHFYdznKZ3NQU/e2E/h arWDQDuJL5O9hD0lqNyckgwl7cYmTjRHJubv4t2s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41082: nvme-fabrics: use reserved tag for reg read/write command Date: Mon, 29 Jul 2024 17:04:30 +0200 Message-ID: <2024072926-CVE-2024-41082-6e0a@gregkh> X-Mailer: git-send-email 2.45.2 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=2255; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=D1QCrUYgUS2oDK5RuYvXl8KMUznqJ8Bh6Oeq3vkzWuk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnL11fp1gh/9u0TChIUffRe7Hzh4sU3UwOE2iflbbFed +lk2aOUjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiItS3DXLkbPzf7TP61L3ta uZUts0ZnkljVUob54VeLjj3peX9R5Pvz+X+W1G0VjZtoAwA= 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: nvme-fabrics: use reserved tag for reg read/write command In some scenarios, if too many commands are issued by nvme command in the same time by user tasks, this may exhaust all tags of admin_q. If a reset (nvme reset or IO timeout) occurs before these commands finish, reconnect routine may fail to update nvme regs due to insufficient tags, which will cause kernel hang forever. In order to workaround this issue, maybe we can let reg_read32()/reg_read64()/reg_write32() use reserved tags. This maybe safe for nvmf: 1. For the disable ctrl path, we will not issue connect command 2. For the enable ctrl / fw activate path, since connect and reg_xx() are called serially. So the reserved tags may still be enough while reg_xx() use reserved tags. The Linux kernel CVE team has assigned CVE-2024-41082 to this issue. Affected and fixed versions =========================== Fixed in 6.9.11 with commit 165da9c67a26 Fixed in 6.10 with commit 7dc3bfcb4c9c 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-41082 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/host/fabrics.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/165da9c67a26f08c9b956c15d701da7690f45bcb https://git.kernel.org/stable/c/7dc3bfcb4c9cc58970fff6aaa48172cb224d85aa