clk: mediatek: pllfh: Fix IO remapping leak in register_pllfhs error path
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.114, 6.18.52, 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: clk: mediatek: pllfh: Fix IO remapping leak in register_pllfhs error path When mtk_clk_register_pllfhs function fails to register a PLL, it unregisters all PLLs and cleans up itself in its error path before returning, so the function callers don't need to do it. But contrary to mtk_clk_unregister_pllfhs function, that does almost the same sequence, it does not free the IO memory mapped on fhctl node, leading to a leak. Fix this leak by factorizing the cleanup sequence in a new private function and use it both mtk_clk_register_pllfhs and mtk_clk_unregister_pllfhs functions. Also, change the loop index start value to avoid the -1 operation on index at each loop.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From d7964de8a8ea800910fdd4e365c42a9e7d5c54aa · fixed in 6e3e93bc718c4fea556d7ca5fba07ab3511c9918; From d7964de8a8ea800910fdd4e365c42a9e7d5c54aa · fixed in 111235106099019b8a8d1947dc5c2674e0329ffa; From d7964de8a8ea800910fdd4e365c42a9e7d5c54aa · fixed in d35e45e5bad4fabcf122126402b6c6dcb4379672; From d7964de8a8ea800910fdd4e365c42a9e7d5c54aa · fixed in fea0b4fd891a2af77b55e05b950e7ea55b5d234e; From d7964de8a8ea800910fdd4e365c42a9e7d5c54aa · fixed in 540d91480bcb1b28a62d7023aa70947ea44c55b9
- Linux Linux
6.2
- KernelLinux
From 6.2.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6