# CVE-2026-98826: rtc: ac100: Fix clock provider use-after-free on probe failure

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-28)
- **Published:** 2026-10-18T15:49:19.709Z
- **Modified:** 2026-10-19T10:19:46.643Z

## Who should check

- Anyone running Linux \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< 12bcd20d76703ee2baf52224d287b7fea096b12f; \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< 9cff19ddd7f90c1f572a0f83cfc41de8f8dcbcd8; \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< 55ca60ba336632349f7c4585d22ba74ae355b7ce; \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< fcf0b58e976e83adf246b014518e49c662b96f5e
- Anyone running Linux 4.9

## Description

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 same device fail.

The error path that returns -EINVAL when the ADDA 4M parent clock cannot
be found leaks the RTC-32k clock in the same way. No provider has been
registered at that point, so that one is a leak rather than a
use-after-free.

Register both with devm\_clk\_hw\_register\_fixed\_rate() and
devm\_of\_clk\_add\_hw\_provider() so that they are released whenever the
device goes away, on a failed probe as well as on unbind. Devres
releases in reverse order of acquisition, so the provider is removed
before chip-\>clk\_data is freed, and the clkout children are now
unregistered before their parent rather than after it.
ac100\_rtc\_unregister\_clks() and the remove callback then have nothing
left to do and are removed.

## Affected and fixed versions

- Linux: \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< 12bcd20d76703ee2baf52224d287b7fea096b12f; \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< 9cff19ddd7f90c1f572a0f83cfc41de8f8dcbcd8; \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< 55ca60ba336632349f7c4585d22ba74ae355b7ce; \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< fcf0b58e976e83adf246b014518e49c662b96f5e (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98826. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98826.md
Affected: Linux >= d00a18a42c1483924de086ddfb0efe8da1dba3ac, < 12bcd20d76703ee2baf52224d287b7fea096b12f; >= d00a18a42c1483924de086ddfb0efe8da1dba3ac, < 9cff19ddd7f90c1f572a0f83cfc41de8f8dcbcd8; >= d00a18a42c1483924de086ddfb0efe8da1dba3ac, < 55ca60ba336632349f7c4585d22ba74ae355b7ce; >= d00a18a42c1483924de086d…
Fixed in: Linux 12bcd20d76703ee2baf52224d287b7fea096b12f, Linux 9cff19ddd7f90c1f572a0f83cfc41de8f8dcbcd8, Linux 55ca60ba336632349f7c4585d22ba74ae355b7ce

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98826 being exploited?

There is no confirmed exploitation: CVE-2026-98826 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-98826?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98826?

Linux \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< 12bcd20d76703ee2baf52224d287b7fea096b12f; \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< 9cff19ddd7f90c1f572a0f83cfc41de8f8dcbcd8; \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< 55ca60ba336632349f7c4585d22ba74ae355b7ce; \>= d00a18a42c1483924de086ddfb0efe8da1dba3ac, \< fcf0b58e976e83adf246b014518e49c662b96f5e; Linux 4.9.

### Is there a fix for CVE-2026-98826?

Yes. Fixed in Linux 12bcd20d76703ee2baf52224d287b7fea096b12f, Linux 9cff19ddd7f90c1f572a0f83cfc41de8f8dcbcd8, Linux 55ca60ba336632349f7c4585d22ba74ae355b7ce. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98826?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/12bcd20d76703ee2baf52224d287b7fea096b12f>
- other: <https://git.kernel.org/stable/c/9cff19ddd7f90c1f572a0f83cfc41de8f8dcbcd8>
- other: <https://git.kernel.org/stable/c/55ca60ba336632349f7c4585d22ba74ae355b7ce>
- other: <https://git.kernel.org/stable/c/fcf0b58e976e83adf246b014518e49c662b96f5e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98826>

HTML: <https://flawdb.com/CVE-2026-98826> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98826>
