VYPR
Unrated severityNVD Advisory· Published Jan 5, 2026· Updated Apr 15, 2026

CVE-2025-68754

CVE-2025-68754

Description

In the Linux kernel, the following vulnerability has been resolved:

rtc: amlogic-a4: fix double free caused by devm

The clock obtained via devm_clk_get_enabled() is automatically managed by devres and will be disabled and freed on driver detach. Manually calling clk_disable_unprepare() in error path and remove function causes double free.

Remove the redundant clk_disable_unprepare() calls from the probe error path and aml_rtc_remove(), allowing the devm framework to automatically manage the clock lifecycle.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A double-free vulnerability in the Amlogic A4 RTC driver occurs when devm_clk_get_enabled() is used alongside manual clock cleanup, leading to a crash on driver detach.

Vulnerability

In the Linux kernel's Amlogic A4 real-time clock (RTC) driver, a double-free vulnerability exists due to improper resource management. The driver uses devm_clk_get_enabled() to obtain and enable a clock, which automatically registers the clock for devres-based cleanup. However, the error path in the probe function and the aml_rtc_remove() function also call clk_disable_unprepare() manually, causing the clock. This results in addition to the automatic devres cleanup. This results in the clock being freed twice, leading to a double-free condition [1].

Exploitation

An attacker would need to trigger the driver's probe failure or removal path. The vulnerability is reachable when the RTC device is probed on a system with the Amlogic A4 SoC and the driver is loaded. No special privileges are required beyond the ability to cause the driver to be probed or removed, which could be achieved through hotplug events or module unloading. The double-free occurs in kernel memory management, which can lead to memory corruption [1].

Impact

Successful exploitation could cause a kernel crash (denial denial of service. In some cases, the memory corruption might be leveraged for privilege escalation, though the reference does not confirm this. The primary impact is system instability and potential data loss due to corruption [1].

Mitigation

The fix removes the redundant clk_disable_unprepare() calls from the probe error path and the aml_rtc_remove() function, allowing the devm framework to handle the clock lifecycle automatically. The patch has been applied to the Linux kernel stable tree [1]. Users should update to a kernel version containing this commit to mitigate the vulnerability.

AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.