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 CE7DF2E425E for ; Tue, 7 Oct 2025 15:21:49 +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=1759850509; cv=none; b=SeKyONs1pT7cqoGUuB+HrTf0Xr1h6HcMa5nmJm3xe+vSglgEyjRt50OZHabs+3h8wzE9OrbpR71ESqz8jq283VP4RNSBgwxBhKpkhVv461jOozAzCq2hPHMzmHxYxjzcdzCH6SD6pKInzLxuCCdshbeH25XOKvwHO077tRmOVx4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850509; c=relaxed/simple; bh=L2azlVgEJ05PXzAXqkG8TMuvaD4uazrraq2JJLHy8Cg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c84Kp0vkOzO6MT5UMqxZeUpSW2r3dan9PuPRIL11fc5LBp7AqU/WsjFLHepDiVK1LjOg8Xcg6Xr9uySh1lKGIJVjKS6odtZfxQbDtsyaYUOWBy21/KFbQLfGJwHjVkCPebNuuAayKTfGyULZEjYPsnav9YCg660DLKXqRFjsSQA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FLB04Fhg; 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="FLB04Fhg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5985BC4CEF1; Tue, 7 Oct 2025 15:21:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850509; bh=L2azlVgEJ05PXzAXqkG8TMuvaD4uazrraq2JJLHy8Cg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FLB04Fhg+/hTVYEdsMRLuRnTUwu8WhtvbWNyM9Z4FurR6cV48xGCdo4HN/7UPZ8k3 YFGFy0yClGU9zVoBikPWWJ8KAds21y33C+9/d417WrjWxIF/gkJwCBg9sRvLGx22Ox I5LtY24u22R6qA3wVc149UsrtP0WL4Ym02jxKoms= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53636: clk: microchip: fix potential UAF in auxdev release callback Date: Tue, 7 Oct 2025 17:19:41 +0200 Message-ID: <2025100714-CVE-2023-53636-20bd@gregkh> X-Mailer: git-send-email 2.51.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=2680; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q1Nea2aCWraW4Qvu4WL0OGPdfk9TAyxKIx/R01SedCE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9Yv4Dx+f2Z5xf/4pr/ZNRy30fWLdpc54/zV/91/vu 9oHPh62jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI+RmGBZPWLNmW9CpsVkKV 1OTihTM4VObdkmOY79dhuGyH6KQfJ6N+nlyzMEtNkMWUDQA= 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: clk: microchip: fix potential UAF in auxdev release callback Similar to commit 1c11289b34ab ("peci: cpu: Fix use-after-free in adev_release()"), the auxiliary device is not torn down in the correct order. If auxiliary_device_add() fails, the release callback will be called twice, resulting in a UAF. Due to timing, the auxdev code in this driver "took inspiration" from the aforementioned commit, and thus its bugs too! Moving auxiliary_device_uninit() to the unregister callback instead avoids the issue. The Linux kernel CVE team has assigned CVE-2023-53636 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit b56bae2dd6fda6baf3bb74af3812676eebdd52f2 and fixed in 6.1.28 with commit 5b4052aa956e11bcd19e50ca559eb38dcb46201b Issue introduced in 6.1 with commit b56bae2dd6fda6baf3bb74af3812676eebdd52f2 and fixed in 6.2.15 with commit d7d6dacf39ed102d7667721ca1700022c9c8b11a Issue introduced in 6.1 with commit b56bae2dd6fda6baf3bb74af3812676eebdd52f2 and fixed in 6.3.2 with commit 934406b2d42eaf3fc57f5546cc68ff7ab9680bb3 Issue introduced in 6.1 with commit b56bae2dd6fda6baf3bb74af3812676eebdd52f2 and fixed in 6.4 with commit 7455b7007b9e93bcc2bc9c1c6c73a228e3152069 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-53636 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/clk/microchip/clk-mpfs.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/5b4052aa956e11bcd19e50ca559eb38dcb46201b https://git.kernel.org/stable/c/d7d6dacf39ed102d7667721ca1700022c9c8b11a https://git.kernel.org/stable/c/934406b2d42eaf3fc57f5546cc68ff7ab9680bb3 https://git.kernel.org/stable/c/7455b7007b9e93bcc2bc9c1c6c73a228e3152069