CVE-2026-98826
Received Received - Intake

Use-After-Free in Linux Kernel AC100 RTC Driver

Vulnerability report for CVE-2026-98826, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-18

Last updated on: 2026-10-18

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-18
Last Modified
2026-10-18
Generated
2026-10-18
AI Q&A
2026-10-18
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 5 associated CPEs
Vendor Product Version / Range
Linux Linux d00a18a42c1483924de086ddfb0efe8da1dba3ac
Linux Linux d00a18a42c1483924de086ddfb0efe8da1dba3ac
Linux Linux d00a18a42c1483924de086ddfb0efe8da1dba3ac
Linux Linux d00a18a42c1483924de086ddfb0efe8da1dba3ac
Linux Linux 4.9

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a use-after-free issue in the AC100 RTC driver. When probe() fails after registering clocks but before completing device setup, the clock provider is left dangling in the global clock provider list. This can lead to reading freed memory when other drivers try to access the clock, causing crashes or instability.

Detection Guidance

This vulnerability is specific to the Linux kernel's RTC (Real-Time Clock) subsystem and affects the ac100 driver. Detection requires checking if the affected driver is loaded and if the system is running a vulnerable kernel version. Use commands like 'lsmod | grep ac100' to check if the driver is loaded and 'uname -a' to verify the kernel version. If the kernel version is older than the patched version, the system may be vulnerable.

Impact Analysis

If you use affected Linux systems with AC100 RTC hardware, this flaw could cause system crashes, data corruption, or unexpected behavior when the RTC clock is accessed. It may also prevent the device from probing correctly on subsequent attempts.

Mitigation Strategies

Update the Linux kernel to a version that includes the fix for CVE-2026-98826. This resolves the use-after-free issue in the ac100 RTC driver. If immediate kernel update is not possible, consider disabling the ac100 driver if it is not required, using 'modprobe -r ac100'.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-98826. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart