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 86F1847A55 for ; Fri, 17 May 2024 12:13:18 +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=1715947998; cv=none; b=RlSWv+fOfXVsYXSFNA/7m3mJniZsEDscVLXSGHEVCM5koybNzVAf1Xqh1+oWrRM+dgwGmjhFZa+m74IrraDYDjd8dOKvADNMQ6aDC1danikxybCb2dqY90JzH8wuReyX1CPiYZVQRxyvO8Gfk7M6CQZcA8scfaZ1GEbUAvUxscc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715947998; c=relaxed/simple; bh=OHx07I/j8h0lDqyMzsQEYEgm/yWbb8kX5Jk7ROBMV5U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PijVOGCwkF5a5PkTHOzemblREz/Y3HIaaW+BWVbMZ9MIc9MVLRY78XPaIVQHNblSPwe5UYxiH7l+I9yOLldG0uvM10KiXVoqkjSMofP23afvQ0SxK81rs9F8D9PvuD2cAExl7u5MKGJ6puYlCOxP62uXc9sTjo4pZ7JnQ1w06BM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VLD18Z7g; 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="VLD18Z7g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF7B6C2BD10; Fri, 17 May 2024 12:13:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715947998; bh=OHx07I/j8h0lDqyMzsQEYEgm/yWbb8kX5Jk7ROBMV5U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VLD18Z7gmdYY1OMwTCPfk1SED/AF5n1fwEzp/MlqgKSqd25re2Q2guQPtf6dsB+Zv TfBmK91MzRaKVsRKQXXkIfQgRFk/2LywDpSwio/3P+t8RTKU3wdsEJI06hsTvrC18B 7lOSVa7JUluIaz8IQOtCR8OinV8gb46O1pBFybzY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27435: nvme: fix reconnection fail due to reserved tag allocation Date: Fri, 17 May 2024 14:13:11 +0200 Message-ID: <2024051710-CVE-2024-27435-c465@gregkh> X-Mailer: git-send-email 2.45.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=2960; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OHx07I/j8h0lDqyMzsQEYEgm/yWbb8kX5Jk7ROBMV5U=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuntdf7RW59Mq8J8i///ZW3+vrbho2z/nueUxTfnVjg jR7nOymjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI7SyGBWu2V3o85+oK+e9T GXj50clPK0TZTzLM9z6gO+OjRJ7le51Hi/wvfHvPurdzJwA= 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: fix reconnection fail due to reserved tag allocation We found a issue on production environment while using NVMe over RDMA, admin_q reconnect failed forever while remote target and network is ok. After dig into it, we found it may caused by a ABBA deadlock due to tag allocation. In my case, the tag was hold by a keep alive request waiting inside admin_q, as we quiesced admin_q while reset ctrl, so the request maked as idle and will not process before reset success. As fabric_q shares tagset with admin_q, while reconnect remote target, we need a tag for connect command, but the only one reserved tag was held by keep alive command which waiting inside admin_q. As a result, we failed to reconnect admin_q forever. In order to fix this issue, I think we should keep two reserved tags for admin queue. The Linux kernel CVE team has assigned CVE-2024-27435 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit ed01fee283a0 and fixed in 6.1.83 with commit 149afee5c741 Issue introduced in 5.12 with commit ed01fee283a0 and fixed in 6.6.23 with commit ff2f90f88d78 Issue introduced in 5.12 with commit ed01fee283a0 and fixed in 6.7.11 with commit 6851778504cd Issue introduced in 5.12 with commit ed01fee283a0 and fixed in 6.8.2 with commit 262da920896e Issue introduced in 5.12 with commit ed01fee283a0 and fixed in 6.9 with commit de105068fead 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-27435 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/core.c drivers/nvme/host/fabrics.h 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/149afee5c7418ec5db9d7387b9c9a5c1eb7ea2a8 https://git.kernel.org/stable/c/ff2f90f88d78559802466ad1c84ac5bda4416b3a https://git.kernel.org/stable/c/6851778504cdb49431809b4ba061903d5f592c96 https://git.kernel.org/stable/c/262da920896e2f2ab0e3947d9dbee0aa09045818 https://git.kernel.org/stable/c/de105068fead55ed5c07ade75e9c8e7f86a00d1d