From mboxrd@z Thu Jan 1 00:00:00 1970 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 9C4FC1A4E9E for ; Wed, 11 Sep 2024 15:14:50 +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=1726067690; cv=none; b=X+ivVU/HuGvUEckRxdzHoXqhZ98ISX2+xlxtlYS6DnpyCvxh663s51odk68moYlmXY78zRC3TNx+lDvtWBKR1Q6xDwxX0yEJnZMgWUIM8G7GDOkEypnDPWKDWMmIxdPF6XqgGMyXB1mjx2XpxHHjlDnE/M2cVm3ow0PIO9FybPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726067690; c=relaxed/simple; bh=RGwqMIPZNBz+JprFVapWBBGnnpdN/i1Ku66gAT9E4cA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=H3RMSesEAIdBuFj62edgR+Iigh6BjMZilOs9yDUhHUilw2zYA1H+A81hHuxM/WRu7lff/PKjuXR5o/W2LBSp2WWTu1jgmR+pl52aW77cNbVcBQVL0EGd4717YpgGhmoA9u2rNHEc9TNN9RNqtLSPRmi22x2C/v5dajBK1FGN5JA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yNXeXPoX; 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="yNXeXPoX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A383C4CEC0; Wed, 11 Sep 2024 15:14:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726067690; bh=RGwqMIPZNBz+JprFVapWBBGnnpdN/i1Ku66gAT9E4cA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yNXeXPoX9GJXce+Kbe/sogqYI9NBDLgoofCCRGcTDzQ8UxoCkyNM7LGnpcUj86wu+ CgYI9IE8IS740RPnKqqHJjXPG/HEyrdbBLB/YAw+cUrBFZmVMl0ihEQS8G8GFLTa6C U5fxFas+eVyPMsAJEknB2qCyypqvCE7pH+t0eqqs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-45013: nvme: move stopping keep-alive into nvme_uninit_ctrl() Date: Wed, 11 Sep 2024 17:14:09 +0200 Message-ID: <2024091107-CVE-2024-45013-8efe@gregkh> X-Mailer: git-send-email 2.46.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=2267; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RGwqMIPZNBz+JprFVapWBBGnnpdN/i1Ku66gAT9E4cA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkPN+9/kxJ+wvNal+jV4ohHp6f9WLOJIZDX8YbldbZLi ToxUonMHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARlXqG+Y4tTV8F02dtefj+ 7eHzWXyvNqw94MUwT0ts3mOJI9lzoj7nFz9K+Wu6fcKPMAA= 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: move stopping keep-alive into nvme_uninit_ctrl() Commit 4733b65d82bd ("nvme: start keep-alive after admin queue setup") moves starting keep-alive from nvme_start_ctrl() into nvme_init_ctrl_finish(), but don't move stopping keep-alive into nvme_uninit_ctrl(), so keep-alive work can be started and keep pending after failing to start controller, finally use-after-free is triggered if nvme host driver is unloaded. This patch fixes kernel panic when running nvme/004 in case that connection failure is triggered, by moving stopping keep-alive into nvme_uninit_ctrl(). This way is reasonable because keep-alive is now started in nvme_init_ctrl_finish(). The Linux kernel CVE team has assigned CVE-2024-45013 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 3af755a46881 and fixed in 6.10.7 with commit 4101af98ab57 Issue introduced in 6.7 with commit 3af755a46881 and fixed in 6.11-rc5 with commit a54a93d0e359 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-45013 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 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/4101af98ab573554c4225e328d506fec2a74bc54 https://git.kernel.org/stable/c/a54a93d0e3599b05856971734e15418ac551a14c