# CVE-2023-54221: clk: imx93: fix memory leak and missing unwind goto in imx93_clocks_probe

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-12-30T12:11:16.053Z
- Modified: 2026-10-28T19:10:00.193Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

clk: imx93: fix memory leak and missing unwind goto in imx93_clocks_probe

In function probe(), it returns directly without unregistered hws
when error occurs.

Fix this by adding 'goto unregister_hws;' on line 295 and
line 310.

Use devm_kzalloc() instead of kzalloc() to automatically
free the memory using devm_kfree() when error occurs.

Replace of_iomap() with devm_of_iomap() to automatically
handle the unused ioremap region and delete 'iounmap(anatop_base);'
in unregister_hws.

(As written by CVE List.)

## Affected

- Linux Linux: from 24defbe194b650218680fcd9dec8cd103537b531 before 280a5ff665e12d1e0c54c20cedc9c5008aa686a5; from 24defbe194b650218680fcd9dec8cd103537b531 before fac9c624138c4bc021d7a8ee3b974c9e10926d92; from 24defbe194b650218680fcd9dec8cd103537b531 before d17c16a2b2a6589c45b0bfb1b9914da80b72d89e; from 24defbe194b650218680fcd9dec8cd103537b531 before e02ba11b457647050cb16e7cad16cec3c252fade; 5.18 (not affected: before 5.18; from 6.1.39 up to 6.1.*; from 6.3.13 up to 6.3.*; from 6.4.4 up to 6.4.*; from 6.5 up to *)

## References

- <https://git.kernel.org/stable/c/280a5ff665e12d1e0c54c20cedc9c5008aa686a5>
- <https://git.kernel.org/stable/c/fac9c624138c4bc021d7a8ee3b974c9e10926d92>
- <https://git.kernel.org/stable/c/d17c16a2b2a6589c45b0bfb1b9914da80b72d89e>
- <https://git.kernel.org/stable/c/e02ba11b457647050cb16e7cad16cec3c252fade>

## Sources

- CVE List: [CVE-2023-54221](https://www.cve.org/CVERecord?id=CVE-2023-54221), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-54221](https://nvd.nist.gov/vuln/detail/CVE-2023-54221), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2023-54221 · Whole record: https://cve.day/CVE-2023-54221.json · Rebuilt by cve.day 2026-11-25T22:58:35.228Z
