# CVE-2021-47205: clk: sunxi-ng: Unregister clocks/resets when unbinding

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2024-04-10T18:56:38.347Z
- Modified: 2026-06-17T04:16:54.393Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

clk: sunxi-ng: Unregister clocks/resets when unbinding

Currently, unbinding a CCU driver unmaps the device's MMIO region, while
leaving its clocks/resets and their providers registered. This can cause
a page fault later when some clock operation tries to perform MMIO. Fix
this by separating the CCU initialization from the memory allocation,
and then using a devres callback to unregister the clocks and resets.

This also fixes a memory leak of the `struct ccu_reset`, and uses the
correct owner (the specific platform driver) for the clocks and resets.

Early OF clock providers are never unregistered, and limited error
handling is possible, so they are mostly unchanged. The error reporting
is made more consistent by moving the message inside of_sunxi_ccu_probe.

(As written by CVE List.)

## Affected

- Linux Linux: from c6a0637460c29799f1e63a6a4a65bda22caf4a54 before b5dd513daa70ee8f6d281a20bd28485ee9bb7db2; from c6a0637460c29799f1e63a6a4a65bda22caf4a54 before 9bec2b9c6134052994115d2d3374e96f2ccb9b9d; 4.10 (not affected: before 4.10; from 5.15.5 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: before 5.15.5

## References

- <https://git.kernel.org/stable/c/b5dd513daa70ee8f6d281a20bd28485ee9bb7db2> (mailing-list, patch)
- <https://git.kernel.org/stable/c/9bec2b9c6134052994115d2d3374e96f2ccb9b9d> (mailing-list, patch)

## Sources

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

---

Page: https://cve.day/CVE-2021-47205 · Whole record: https://cve.day/CVE-2021-47205.json · Rebuilt by cve.day 2026-11-25T22:58:08.716Z
