{"schema":"threatline.record/2","record":{"id":"CVE-2026-98826","aliases":[],"summary":"rtc: ac100: Fix clock provider use-after-free on probe failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nrtc: ac100: Fix clock provider use-after-free on probe failure\n\nac100_rtc_register_clks() registers the RTC-32k clock with\nclk_hw_register_fixed_rate() and the clock provider with\nof_clk_add_hw_provider(). Neither is device managed, and both are\nreleased only from ac100_rtc_remove(). The driver core does not call\nremove() when probe() fails: really_probe() reaches probe_failed below\nthe device_remove() call and goes straight to releasing the device's\nmanaged resources.\n\nac100_rtc_probe() ends with\n\n\treturn devm_rtc_register_device(chip->rtc);\n\nso if that fails after the clocks have been registered, the provider is\nleft on the global of_clk_providers list holding chip->clk_data, which\nwas allocated with devm_kzalloc() and is freed while probe() unwinds. A\nlater lookup on this device tree node then reads freed memory in\nof_clk_hw_onecell_get(). Consumers that do exactly that exist in tree:\nthe wifi power sequence nodes on sun8i-a83t-bananapi-m3 and\nsun8i-a83t-cubietruck-plus take <&ac100_rtc 1>, and the sun9i-a80 boards\nroute osc32k through <&ac100_rtc 0>. The window is narrow, as\ndevm_rtc_register_device() can only fail with -ENOMEM here, but the\nprovider is left dangling whenever it does.\n\nThe RTC-32k clock is leaked on the same path. Since clk_core_lookup()\nsearches a global list that is not scoped per device, __clk_register()\nrejects the duplicate name with -EEXIST, so the leak also makes a later\nprobe of the same device fail.\n\nThe error path that returns -EINVAL when the ADDA 4M parent clock cannot\nbe found leaks the RTC-32k clock in the same way. No provider has been\nregistered at that point, so that one is a leak rather than a\nuse-after-free.\n\nRegister both with devm_clk_hw_register_fixed_rate() and\ndevm_of_clk_add_hw_provider() so that they are released whenever the\ndevice goes away, on a failed probe as well as on unbind. Devres\nreleases in reverse order of acquisition, so the provider is removed\nbefore chip->clk_data is freed, and the clkout children are now\nunregistered before their parent rather than after it.\nac100_rtc_unregister_clks() and the remove callback then have nothing\nleft to do and are removed.","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98826","source_modified_at":"2026-10-19T09:26:19.030Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"d00a18a42c1483924de086ddfb0efe8da1dba3ac","lessThan":"12bcd20d76703ee2baf52224d287b7fea096b12f","status":"affected","versionType":"git"},{"version":"d00a18a42c1483924de086ddfb0efe8da1dba3ac","lessThan":"9cff19ddd7f90c1f572a0f83cfc41de8f8dcbcd8","status":"affected","versionType":"git"},{"version":"d00a18a42c1483924de086ddfb0efe8da1dba3ac","lessThan":"55ca60ba336632349f7c4585d22ba74ae355b7ce","status":"affected","versionType":"git"},{"version":"d00a18a42c1483924de086ddfb0efe8da1dba3ac","lessThan":"fcf0b58e976e83adf246b014518e49c662b96f5e","status":"affected","versionType":"git"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98826","source_modified_at":"2026-10-19T09:26:19.030Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"4.9","status":"affected"},{"version":"0","lessThan":"4.9","status":"unaffected","versionType":"semver"},{"version":"6.12.113","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.56","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.10","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"defaultStatus":"affected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98826","source_modified_at":"2026-10-19T09:26:19.030Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"12bcd20d76703ee2baf52224d287b7fea096b12f","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98826","source_modified_at":"2026-10-19T09:26:19.030Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"9cff19ddd7f90c1f572a0f83cfc41de8f8dcbcd8","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98826","source_modified_at":"2026-10-19T09:26:19.030Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"55ca60ba336632349f7c4585d22ba74ae355b7ce","basis":"first unaffected version stated in the CVE record"}],"cvss":null,"severity":null,"kev":{"listed":false},"epss":{"probability":0.002,"percentile":0.09326,"score_date":"2026-10-23"},"published_at":"2026-10-18T15:49:19.709Z","modified_at":"2026-10-19T09:26:19.030Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-98826","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-19T09:26:19.030Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-98826","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://git.kernel.org/stable/c/12bcd20d76703ee2baf52224d287b7fea096b12f"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/9cff19ddd7f90c1f572a0f83cfc41de8f8dcbcd8"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/55ca60ba336632349f7c4585d22ba74ae355b7ce"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/fcf0b58e976e83adf246b014518e49c662b96f5e"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-19T09:26:19.030Z","content_hash":"e3b441b45644035eca062a34ae38c48544ee0c0b00a97d7eabed77545a89908e"}}
