Description
In the Linux kernel, the following vulnerability has been resolved:
clk: mediatek: fix of_iomap memory leak
Smatch reports: drivers/clk/mediatek/clk-mtk.c:583 mtk_clk_simple_probe() warn: 'base' from of_iomap() not released on lines: 496.
This problem was also found in linux-next. In mtk_clk_simple_probe(), base is not released when handling errors if clk_data is not existed, which may cause a leak. So free_base should be added here to release base.
Metrics
CVSS 3.1 5.5/10
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= c58cd0e40ffac67961b945793876b973728f9b80, < 847d5dd788ce05f0aaaa36ea174f7f0b9cf86f7d; >= c58cd0e40ffac67961b945793876b973728f9b80, < 2cae6a28d8c12c597e8656962271520434c61c48; >= c58cd0e40ffac67961b945793876b973728f9b80, < 47234e19b00816a8a7b278c7173f6d4e928c43c7; >= c58cd0e40ffac67961b945793876b973728f9b80, < 3db7285e044144fd88a356f5b641b9cd4b231a77 |
| Linux | Linux | 5.15 |
References
- https://git.kernel.org/stable/c/2cae6a28d8c12c597e8656962271520434c61c48Patch
- https://git.kernel.org/stable/c/3db7285e044144fd88a356f5b641b9cd4b231a77Patch
- https://git.kernel.org/stable/c/47234e19b00816a8a7b278c7173f6d4e928c43c7Patch
- https://git.kernel.org/stable/c/847d5dd788ce05f0aaaa36ea174f7f0b9cf86f7dPatch
Timeline
- Published
- Sep 18, 2025
- Last modified
- Jun 17, 2026
- NVD status
- Analyzed