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 DD5721465BB for ; Mon, 26 Aug 2024 10:24:09 +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=1724667849; cv=none; b=nxWXCFW02EAugYfShwmXZAFmASJ/0opp5Mtnmw6E21fnw9riM8T4sm9+DA8oh4JRP1bRALJkyNZk6erBzJHHtH9sTV2f0CWQYzJrVDcmkkhOqU9LJ9Bhg+fTH+WTZudw3gjLFxkCJo0ALHbvZYp6aeF3OLbBT5hDXcIRvTOkMB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724667849; c=relaxed/simple; bh=SfI81CTWMJ6B8pOcbrzcPGE7ngadeYpDpLaiqTk8tg0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gfNDY5/oYCEgp28A0wonxl8RXmpMuNVrfVjrqIz8bHi9v9L66SGmQ4Io+wu6rEVpCyF6xS9fRtamOgXmIt3GUaQt4b1kR8mulRUdEZAukdbmz0fXoeoFyq2lpxT0vuu+ETVbA/FFCLtcbJbfQUgcxQQ0pume9oXqxUHBP6riDGI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X4uZNhjP; 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="X4uZNhjP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64F21C84038; Mon, 26 Aug 2024 10:24:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724667849; bh=SfI81CTWMJ6B8pOcbrzcPGE7ngadeYpDpLaiqTk8tg0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=X4uZNhjPb9dXotQPkMm9tdoxhFNk1BAfz6Q3LSANBVLBwdgA3F3g0k+Belox9jqeI Q3GFPZgmRGAJeog/r5CxWhka7eQTithSZOlf9r2Yhfb7a+6eAAKY1cG6z1PqbTLN7Y 5igMmOojkfYJgo5iODfTU25hYoHZ9tXUdO7p8feE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43913: nvme: apple: fix device reference counting Date: Mon, 26 Aug 2024 12:17:21 +0200 Message-ID: <2024082633-CVE-2024-43913-6ec7@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=1795; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SfI81CTWMJ6B8pOcbrzcPGE7ngadeYpDpLaiqTk8tg0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlnwuycfRdNM0ye6r9a8a/TXZ1L3rx/D25uT/1k5ii4Q 15P/ptsRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkvR/DTEbLD7XPxRZ8aTZf uOcJI8vOG7bnvzPMz3ZwKlFr26c5x1Omnlt5/8NFa7VOAQA= 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: apple: fix device reference counting Drivers must call nvme_uninit_ctrl after a successful nvme_init_ctrl. Split the allocation side out to make the error handling boundary easier to navigate. The apple driver had been doing this wrong, leaking the controller device memory on a tagset failure. The Linux kernel CVE team has assigned CVE-2024-43913 to this issue. Affected and fixed versions =========================== Fixed in 6.10.5 with commit d59c4d0eb6ad Fixed in 6.11-rc1 with commit b9ecbfa45516 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-43913 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/apple.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/d59c4d0eb6adc24c2201f153ccb7fd0a335b0d3d https://git.kernel.org/stable/c/b9ecbfa45516182cd062fecd286db7907ba84210