clk: Fix memory leak in devm_clk_notifier_register()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel, devm_clk_notifier_register() allocates a resource without registering it to the device. When the device detaches, the notifier is not unregistered and the resource leaks. The input does not describe an attacker action or specify network access, authentication, or user interaction.
Engineers running Linux kernels that use devm_clk_notifier_register() should check their kernel version; affected versions are not specified.