Bug 2536490 (CVE-2026-90147) - CVE-2026-90147 kernel: clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate()
Summary: CVE-2026-90147 kernel: clk: devres: fix cleanup in devm_clk_get_optional_enab...
Keywords:
Status: NEW
Alias: CVE-2026-90147
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-17 18:12 UTC by OSIDB Bzimport
Modified: 2026-10-13 12:53 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-17 18:12:12 UTC
In the Linux kernel, the following vulnerability has been resolved:

clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate()

devm_clk_get_optional_enabled_with_rate() registers its cleanup action
before setting the clock rate. If setting the rate fails, it attempts to
disable and unprepare a clock that was never enabled. This issue was
spotted while reviewing "rust: clk: add devres-managed clks" [1].

Register the cleanup action only after successfully preparing and enabling
the clock.

[1]: https://lore.kernel.org/rust-for-linux/20260706-clk-type-state-v5-3-67c5f326a16c@collabora.com


Note You need to log in before you can comment on or make changes to this bug.