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 90769290D81 for ; Tue, 30 Dec 2025 12:14:46 +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=1767096886; cv=none; b=Cg+54o6j2F4fAbKxNEUVl6AGqgOqit62lCW4jjRzPyKwPwFlanl0HrdTkoXW+x6dgfGDzodDZSAlxY+h34OPsVukqfDIc1hPm996sHlvGaSCNqIz02+bBXK8ErO6A9jB2u+BvyBbvAEGuP3CRWy2wv+hNy0Wyxw/fP2Sf9xoNxs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096886; c=relaxed/simple; bh=NymNdkersIav4xLkDqgweYcwLaKkVIZxcgug76rBHi4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AQkamExSpNhNNyEuMEmZJqaO5lId9gujePa77WzVF3dlJn3MEaOqP6V6PsEwL4AXgBgajtiS0nq90NEJbrzZKoJ0c9SgGADNK18V2esYbal981/H3SaQh1HUcBLpsGf0igFyubYPh35z9O3owyeip8UhquGynjcNsG85nBQlbGE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OijozThu; 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="OijozThu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13C15C4CEFB; Tue, 30 Dec 2025 12:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096886; bh=NymNdkersIav4xLkDqgweYcwLaKkVIZxcgug76rBHi4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=OijozThuia5KYB692zd7zvDFBXJnhkj6+RlpiPX3jXYgVrKN6mpBQz6OJ0r0nFPwP HdKhcLDxsseiDK1XFPWqjmZZpMQdIeMx54/DbpJ7XlOTLqk2W7Mz3BVXAO1vgiRh8q vWoOGQPu5JE2wIqLUqXqjXa16bf3jGpK0AgykxIw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54204: mmc: sunplus: fix return value check of mmc_add_host() Date: Tue, 30 Dec 2025 13:13:34 +0100 Message-ID: <2025123022-CVE-2023-54204-6286@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2162; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bZSgpoYIpodxHX/4oHVl04M5xbf2762zUUlLHoKywSQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBBx/FnAw6E7Es/OMPu4rX1j1XBdYkzj38zEp0S5F6m 67Rhf6sjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIkwCGBddZRPavqVq1ZmVC KZNKYUy0/MvQOoYFV364v1DfqXJSPqjgtudr29Wp007dBgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: mmc: sunplus: fix return value check of mmc_add_host() mmc_add_host() may return error, if we ignore its return value, 1. the memory allocated in mmc_alloc_host() will be leaked 2. null-ptr-deref will happen when calling mmc_remove_host() in remove function spmmc_drv_remove() because deleting not added device. Fix this by checking the return value of mmc_add_host(). Moreover, I fixed the error handling path of spmmc_drv_probe() to clean up. The Linux kernel CVE team has assigned CVE-2023-54204 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 4e268fed8b1861616af28f9cfb4eed8ca5d7af6c and fixed in 6.4.12 with commit 741a951f41929f39cae70c66d86d0754d3129d0a Issue introduced in 6.2 with commit 4e268fed8b1861616af28f9cfb4eed8ca5d7af6c and fixed in 6.5 with commit dce6d8f985fa1ef5c2af47f4f86ea65511b78656 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-54204 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/sunplus-mmc.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/741a951f41929f39cae70c66d86d0754d3129d0a https://git.kernel.org/stable/c/dce6d8f985fa1ef5c2af47f4f86ea65511b78656