Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 5.15.5 |
Related Weaknesses (CWE)
References
- https://git.kernel.org/stable/c/9bec2b9c6134052994115d2d3374e96f2ccb9b9dMailing ListPatch
- https://git.kernel.org/stable/c/b5dd513daa70ee8f6d281a20bd28485ee9bb7db2Mailing ListPatch
- https://git.kernel.org/stable/c/9bec2b9c6134052994115d2d3374e96f2ccb9b9dMailing ListPatch
- https://git.kernel.org/stable/c/b5dd513daa70ee8f6d281a20bd28485ee9bb7db2Mailing ListPatch
FAQ
What is CVE-2021-47205?
CVE-2021-47205 is a vulnerability with a CVSS score of 5.5 (MEDIUM). 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 le...
How severe is CVE-2021-47205?
CVE-2021-47205 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-47205?
Check the references section above for vendor advisories and patch information. Affected products include: Linux Linux Kernel.