{"id":"CVE-2026-93145","aliases":["CVE-2026-93145"],"related":[],"kind":"vulnerability","state":"published","title":"clk: qcom: gdsc: tear down per-domain genpds in gdsc_unregister()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: qcom: gdsc: tear down per-domain genpds in gdsc_unregister()\n\ngdsc_unregister() removes the OF provider entry and tears down the\nparent/subdomain wiring, but never calls pm_genpd_remove() on the\nindividual generic_pm_domain structures registered by gdsc_init():\n\n\tvoid gdsc_unregister(struct gdsc_desc *desc)\n\t{\n\t\tstruct device *dev = desc->dev;\n\t\tsize_t num = desc->num;\n\n\t\tgdsc_pm_subdomain_remove(desc, num);\n\t\tof_genpd_del_provider(dev->of_node);\n\t}\n\nThat leaves dangling entries on the global gpd_list. After a provider\nunbind/rebind cycle (deferred-probe replay during early boot, real\nmodule unload of a clk driver that owns GDSCs, or an OF-overlay tear-\ndown) the next gdsc_init() will end up trying to re-register a name\nthat is still in the list and pm_genpd_init() returns -EEXIST.\n\nWhile we are here, flip the order so the consumer-facing OF provider\nentry is the first thing removed -- otherwise a fresh\nof_genpd_get_from_provider() call racing with the teardown could\nattach to a domain that is mid-removal.\n\nIterate the scs[] array and pm_genpd_remove() each registered domain\nafter the subdomain links are torn down. The regulators stay devm-\nmanaged (devm_regulator_get_optional() in gdsc_register()), so the\nrelease happens automatically when the underlying device is unbound;\njust the genpd accounting needs to be undone explicitly.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: qcom: gdsc: tear down per-domain genpds in gdsc_unregister()\n\ngdsc_unregister() removes the OF provider entry and tears down the\nparent/subdomain wiring, but never calls pm_genpd_remove() on the\nindividual generic_pm_domain structures registered by gdsc_init():\n\n\tvoid gdsc_unregister(struct gdsc_desc *desc)\n\t{\n\t\tstruct device *dev = desc->dev;\n\t\tsize_t num = desc->num;\n\n\t\tgdsc_pm_subdomain_remove(desc, num);\n\t\tof_genpd_del_provider(dev->of_node);\n\t}\n\nThat leaves dangling entries on the global gpd_list. After a provider\nunbind/rebind cycle (deferred-probe replay during early boot, real\nmodule unload of a clk driver that owns GDSCs, or an OF-overlay tear-\ndown) the next gdsc_init() will end up trying to re-register a name\nthat is still in the list and pm_genpd_init() returns -EEXIST.\n\nWhile we are here, flip the order so the consumer-facing OF provider\nentry is the first thing removed -- otherwise a fresh\nof_genpd_get_from_provider() call racing with the teardown could\nattach to a domain that is mid-removal.\n\nIterate the scs[] array and pm_genpd_remove() each registered domain\nafter the subdomain links are torn down. The regulators stay devm-\nmanaged (devm_regulator_get_optional() in gdsc_register()), so the\nrelease happens automatically when the underlying device is unbound;\njust the genpd accounting needs to be undone explicitly.","source":"cvelist"}],"published":"2026-09-17T16:11:43.421Z","modified":"2026-10-19T10:17:04.627Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"45dd0e55317ccb27fe8eae639275c2b3a2fb52e5","fixed":"418d2f0a32b2a9ceb656a88aa9139408a9b7b517","status":"affected"},{"type":"git","introduced":"45dd0e55317ccb27fe8eae639275c2b3a2fb52e5","fixed":"6333cbf7e86df9797b342ce64ae7d32ba46d8d10","status":"affected"},{"type":"git","introduced":"45dd0e55317ccb27fe8eae639275c2b3a2fb52e5","fixed":"cfe16d993c578f6b17e0171a8dfd68f6fdfcfb24","status":"affected"},{"type":"git","introduced":"45dd0e55317ccb27fe8eae639275c2b3a2fb52e5","fixed":"0f4733f5fc6b6b62750619f30c18730922a1dbdb","status":"affected"},{"type":"git","introduced":"45dd0e55317ccb27fe8eae639275c2b3a2fb52e5","fixed":"6b9228a43963bcd4db92deb467375345132c29b3","status":"affected"},{"type":"git","introduced":"45dd0e55317ccb27fe8eae639275c2b3a2fb52e5","fixed":"f60f495858379dc70e87c6898d761a9db98739ff","status":"affected"},{"type":"git","introduced":"45dd0e55317ccb27fe8eae639275c2b3a2fb52e5","fixed":"40bd77fa2857ccfa77b885b77d44cea406f24a4c","status":"affected"},{"type":"git","introduced":"45dd0e55317ccb27fe8eae639275c2b3a2fb52e5","fixed":"86b23609d5e17a770d03037e53c6a443e742a6e6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.4","status":"unaffected"},{"type":"semver","introduced":"5.10.270","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","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/418d2f0a32b2a9ceb656a88aa9139408a9b7b517","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6333cbf7e86df9797b342ce64ae7d32ba46d8d10","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cfe16d993c578f6b17e0171a8dfd68f6fdfcfb24","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f4733f5fc6b6b62750619f30c18730922a1dbdb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b9228a43963bcd4db92deb467375345132c29b3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f60f495858379dc70e87c6898d761a9db98739ff","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/40bd77fa2857ccfa77b885b77d44cea406f24a4c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86b23609d5e17a770d03037e53c6a443e742a6e6","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-93145","url":"https://www.cve.org/CVERecord?id=CVE-2026-93145","licence":"CVE Terms of Use","modified":"2026-10-19T09:06:17.744Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-93145","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93145","licence":"Public domain","modified":"2026-10-19T10:17:04.627Z"}],"updatedAt":"2026-11-25T22:59:39.467Z","epss":{"score":0.00216,"percentile":0.12841,"date":"2026-12-01T12:00:22.000Z"}}