clk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 96d6392b54dbb1ff2b39448a2516fa6abb33114b · < 188d070de9132667956f5aadd98d2bd87d3eac89| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
clk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probe
Use devm_of_iomap() instead of of_iomap() to automatically handle the unused ioremap region.
If any error occurs, regions allocated by kzalloc() will leak, but using devm_kzalloc() instead will automatically free the memory using devm_kfree().
From the CVE record · Linux
The Linux kernel’s i.MX8MN clock probe can leak allocated memory and an I/O mapping when an error occurs. The input does not specify how an attacker could trigger the error or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the i.MX8MN clock driver should check their versions; affected versions are not specified.