# CVE-2025-68754: rtc: amlogic-a4: fix double free caused by devm

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-01-05T09:32:27.788Z
- Modified: 2026-10-14T19:10:00.297Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from c89ac9182ee297597f1c6971045382bae19c3f9d before 9fed02c16488050cd4e33e045506336b216d7301; from c89ac9182ee297597f1c6971045382bae19c3f9d before 2e1c79299036614ac32b251d145fad5391f4bcab; from c89ac9182ee297597f1c6971045382bae19c3f9d before 384150d7a5b60c1086790a8ee07b0629f906cca2; 6.13 (not affected: before 6.13; from 6.17.13 up to 6.17.*; from 6.18.2 up to 6.18.*; from 6.19 up to *)

## References

- <https://git.kernel.org/stable/c/9fed02c16488050cd4e33e045506336b216d7301>
- <https://git.kernel.org/stable/c/2e1c79299036614ac32b251d145fad5391f4bcab>
- <https://git.kernel.org/stable/c/384150d7a5b60c1086790a8ee07b0629f906cca2>

## Sources

- CVE List: [CVE-2025-68754](https://www.cve.org/CVERecord?id=CVE-2025-68754), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-68754](https://nvd.nist.gov/vuln/detail/CVE-2025-68754), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-68754 · Whole record: https://cve.day/CVE-2025-68754.json · Rebuilt by cve.day 2026-11-25T22:59:10.264Z
