CVE-2023-53636 PUBLISHED

clk: microchip: fix potential UAF in auxdev release callback

Assigner: Linux
Reserved: 07.10.2025 Published: 07.10.2025 Updated: 07.10.2025

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from b56bae2dd6fda6baf3bb74af3812676eebdd52f2 to 5b4052aa956e11bcd19e50ca559eb38dcb46201b (excl.)
  • affected from b56bae2dd6fda6baf3bb74af3812676eebdd52f2 to d7d6dacf39ed102d7667721ca1700022c9c8b11a (excl.)
  • affected from b56bae2dd6fda6baf3bb74af3812676eebdd52f2 to 934406b2d42eaf3fc57f5546cc68ff7ab9680bb3 (excl.)
  • affected from b56bae2dd6fda6baf3bb74af3812676eebdd52f2 to 7455b7007b9e93bcc2bc9c1c6c73a228e3152069 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.1 is affected
  • unaffected from 0 to 6.1 (excl.)
  • unaffected from 6.1.28 to 6.1.* (incl.)
  • unaffected from 6.2.15 to 6.2.* (incl.)
  • unaffected from 6.3.2 to 6.3.* (incl.)
  • unaffected from 6.4 to * (incl.)

References