Skip to contentSkip to conversation

CVE-2023-53636: clk: microchip: fix potential UAF in auxdev release callback

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 7, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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