CVE-2023-53674 PUBLISHED

clk: Fix memory leak in devm_clk_notifier_register()

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: Fix memory leak in devm_clk_notifier_register()

devm_clk_notifier_register() allocates a devres resource for clk notifier but didn't register that to the device, so the notifier didn't get unregistered on device detach and the allocated resource was leaked.

Fix the issue by registering the resource through devres_add().

This issue was found with kmemleak on a Chromebook.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 6d30d50d037dfa092f9d5d1fffa348ab4abb7163 to a326cf0107b197e649bbaa2a2b1355894826ce32 (excl.)
  • affected from 6d30d50d037dfa092f9d5d1fffa348ab4abb7163 to 49451db71b746df990888068961f1033f7c9b734 (excl.)
  • affected from 6d30d50d037dfa092f9d5d1fffa348ab4abb7163 to cb1b04fd4283fc8f9acefe0ddc61ba072ed44877 (excl.)
  • affected from 6d30d50d037dfa092f9d5d1fffa348ab4abb7163 to efbbda79b2881a04dcd0e8f28634933d79e17e49 (excl.)
  • affected from 6d30d50d037dfa092f9d5d1fffa348ab4abb7163 to 7fb933e56f77a57ef7cfc59fc34cbbf1b1fa31ff (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.11 is affected
  • unaffected from 0 to 5.11 (excl.)
  • unaffected from 5.15.121 to 5.15.* (incl.)
  • unaffected from 6.1.39 to 6.1.* (incl.)
  • unaffected from 6.3.13 to 6.3.* (incl.)
  • unaffected from 6.4.4 to 6.4.* (incl.)
  • unaffected from 6.5 to * (incl.)

References