Skip to content
Heist/ feed
Unrated

rtc: ac100: Fix clock provider use-after-free on probe failure

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: rtc: ac100: Fix clock provider use-after-free on probe failure ac100_rtc_register_clks() registers the RTC-32k clock with clk_hw_register_fixed_rate() and the clock provider with of_clk_add_hw_provider(). Neither is device managed, and both are released only from ac100_rtc_remove(). The driver core does not call remove() when probe() fails: really_probe() reaches probe_failed below the device_remove() call and goes straight to releasing the device's managed resources. ac100_rtc_probe() ends with return devm_rtc_register_device(chip->rtc); so if that fails after the clocks have been registered, the provider is left on the global of_clk_providers list holding chip->clk_data, which was allocated with devm_kzalloc() and is freed while probe() unwinds. A later lookup on this device tree node then reads freed memory in of_clk_hw_onecell_get(). Consumers that do exactly that exist in tree: the wifi power sequence nodes on sun8i-a83t-bananapi-m3 and sun8i-a83t-cubietruck-plus take <&ac100_rtc 1>, and the sun9i-a80 boards route osc32k through <&ac100_rtc 0>. The window is narrow, as devm_rtc_register_device() can only fail with -ENOMEM here, but the provider is left dangling whenever it does. The RTC-32k clock is leaked on the same path. Since clk_core_lookup() searches a global list that is not scoped per device, __clk_register() rejects the duplicate name with -EEXIST, so the leak also makes a later probe of the sam

Announced Source revision 1
Original source ↗

CVE-2026-98826

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-98826

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "d00a18a42c1483924de086ddfb0efe8da1dba3ac",
        "lessThan": "12bcd20d76703ee2baf52224d287b7fea096b12f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "d00a18a42c1483924de086ddfb0efe8da1dba3ac",
        "lessThan": "9cff19ddd7f90c1f572a0f83cfc41de8f8dcbcd8",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "d00a18a42c1483924de086ddfb0efe8da1dba3ac",
        "lessThan": "55ca60ba336632349f7c4585d22ba74ae355b7ce",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "d00a18a42c1483924de086ddfb0efe8da1dba3ac",
        "lessThan": "fcf0b58e976e83adf246b014518e49c662b96f5e",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/rtc/rtc-ac100.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.9"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.9",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.12.113",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.56",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.10",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/rtc/rtc-ac100.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98826

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#38739 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement