{"id":"CVE-2026-90147","aliases":["CVE-2026-90147"],"related":[],"kind":"vulnerability","state":"published","title":"clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate()\n\ndevm_clk_get_optional_enabled_with_rate() registers its cleanup action\nbefore setting the clock rate. If setting the rate fails, it attempts to\ndisable and unprepare a clock that was never enabled. This issue was\nspotted while reviewing \"rust: clk: add devres-managed clks\" [1].\n\nRegister the cleanup action only after successfully preparing and enabling\nthe clock.\n\n[1]: https://lore.kernel.org/rust-for-linux/20260706-clk-type-state-v5-3-67c5f326a16c@collabora.com","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate()\n\ndevm_clk_get_optional_enabled_with_rate() registers its cleanup action\nbefore setting the clock rate. If setting the rate fails, it attempts to\ndisable and unprepare a clock that was never enabled. This issue was\nspotted while reviewing \"rust: clk: add devres-managed clks\" [1].\n\nRegister the cleanup action only after successfully preparing and enabling\nthe clock.\n\n[1]: https://lore.kernel.org/rust-for-linux/20260706-clk-type-state-v5-3-67c5f326a16c@collabora.com","source":"cvelist"}],"published":"2026-09-17T16:06:42.342Z","modified":"2026-10-19T09:19:04.637Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9934a1bd45b2b03f6d1204a6ae2780d3b009799f","fixed":"9a365f41fe0f227ef5a269e240233bd0bffc66c9","status":"affected"},{"type":"git","introduced":"9934a1bd45b2b03f6d1204a6ae2780d3b009799f","fixed":"9d4843f1051259854f724e9cdc5b9eac56327037","status":"affected"},{"type":"git","introduced":"9934a1bd45b2b03f6d1204a6ae2780d3b009799f","fixed":"647157fecb42b72d930e7b7d0bfbc5f2db9a858a","status":"affected"},{"type":"git","introduced":"9934a1bd45b2b03f6d1204a6ae2780d3b009799f","fixed":"0d4d262c1664365e17e0a5ba2ab79f4db484b44e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.12","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9a365f41fe0f227ef5a269e240233bd0bffc66c9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9d4843f1051259854f724e9cdc5b9eac56327037","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/647157fecb42b72d930e7b7d0bfbc5f2db9a858a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d4d262c1664365e17e0a5ba2ab79f4db484b44e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90147","url":"https://www.cve.org/CVERecord?id=CVE-2026-90147","licence":"CVE Terms of Use","modified":"2026-10-19T08:58:46.427Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90147","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90147","licence":"Public domain","modified":"2026-10-19T09:19:04.637Z"}],"updatedAt":"2026-11-25T22:59:39.318Z","epss":{"score":0.002,"percentile":0.104,"date":"2026-12-01T12:00:22.000Z"}}