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 DE602143C61 for ; Tue, 21 May 2024 15:24: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=1716305095; cv=none; b=X7H7QBHnANcgV+oazuRck1nq/MlwTRta3JALoh8UCP0XxiK7oFQUacslpYGllkN3XIS8ToMrkWPWQq0At+FctmKQpg4EaqSQm/Kl/nWJ651GyUXobM3/1UBlC8MN9oKyhC/7xeaA3ri9DPOoLADm/JJtm0y72/Kkke8z2SNR0Ck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305095; c=relaxed/simple; bh=NouWGLXyjiK41PLBJ9hStNkqD2GjXdG2OmiDc30Sc9U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=erBgRBdnXKRkgbXkeMevsNU4BCixjTzFoUYtmUl4DwZxs29nZLvXs4nttQkNtT4GWHdFG7zNxBIS3/tCPwfr/Z2SrYJEDeDm1LccNb3eZWmId1gozYzDFl9XbwsURCenG39AwN1vjm1HJzCwN5tb8lMNHjaMLFnnrWFFo39gsGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kDDXwsJA; 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="kDDXwsJA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AD68C4AF08; Tue, 21 May 2024 15:24:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305094; bh=NouWGLXyjiK41PLBJ9hStNkqD2GjXdG2OmiDc30Sc9U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kDDXwsJA8VRRtYRIlHVEU4o8BlMvss9cf49TqC55YnBwG1gdbe4e9osZeZze0mGvz oEWhKnKImBo7TT/27yxhP5cBbbBY5bh4dCWN8niWxNrEy8fO/gzXVDbWPO/gFBZa10 9IF2LxuhZ5U+gfWtG84bjvpoSNTqI8R6rnyYwnAI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52708: mmc: mmc_spi: fix error handling in mmc_spi_probe() Date: Tue, 21 May 2024 17:23:06 +0200 Message-ID: <2024052158-CVE-2023-52708-d68d@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=2474; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NouWGLXyjiK41PLBJ9hStNkqD2GjXdG2OmiDc30Sc9U=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+e4Lmzi0p11nx58qdU7771s65JHZrjvOaJt89p1QrL FZn2S9e3RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATeaXIsGDqfsPYFVWcUrue bdokW/w95IOr5E6GeQqeEyUKZ33paFbjTfYSWbMkfdWl2wA= 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: mmc: mmc_spi: fix error handling in mmc_spi_probe() If mmc_add_host() fails, it doesn't need to call mmc_remove_host(), or it will cause null-ptr-deref, because of deleting a not added device in mmc_remove_host(). To fix this, goto label 'fail_glue_init', if mmc_add_host() fails, and change the label 'fail_add_host' to 'fail_gpiod_request'. The Linux kernel CVE team has assigned CVE-2023-52708 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.24 with commit 15a0580ced08 and fixed in 5.4.232 with commit e9b488d60f51 Issue introduced in 2.6.24 with commit 15a0580ced08 and fixed in 5.10.169 with commit 0b3edcb24bd8 Issue introduced in 2.6.24 with commit 15a0580ced08 and fixed in 5.15.95 with commit ecad2fafd424 Issue introduced in 2.6.24 with commit 15a0580ced08 and fixed in 6.1.13 with commit 82645bf4ed02 Issue introduced in 2.6.24 with commit 15a0580ced08 and fixed in 6.2 with commit cf4c9d2ac1e4 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-2023-52708 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/mmc/host/mmc_spi.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/e9b488d60f51ae312006e224e03a30a151c28bdd https://git.kernel.org/stable/c/0b3edcb24bd81b3b2e3dac89f4733bfd47d283be https://git.kernel.org/stable/c/ecad2fafd424ffdc203b2748ded0b37e4bbecef3 https://git.kernel.org/stable/c/82645bf4ed02abe930a659c5fe16d593a6dbd93f https://git.kernel.org/stable/c/cf4c9d2ac1e42c7d18b921bec39486896645b714