CVE-2021-47205

published 10 Apr 2024 · updated 11 May 2026

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

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 9bec2b9c6134052994115d2d3374e96f2ccb9b9d and Kernel b5dd513daa70ee8f6d281a20bd28485ee9bb7db2.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.10, >=c6a0637460c29799f1e63a6a4a65bda22caf4a54 <9bec2b9c6134052994115d2d3374e96f2ccb9b9d, >=c6a0637460c29799f1e63a6a4a65bda22caf4a54 <b5dd513daa70ee8f6d281a20bd28485ee9bb7db29bec2b9c6134052994115d2d3374e96f2ccb9b9d, b5dd513daa70ee8f6d281a20bd28485ee9bb7db2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47205 severity on Zeptric[![CVE-2021-47205](https://zeptric.io/badge/cve/CVE-2021-47205.svg)](https://zeptric.io/cve/CVE-2021-47205)