# CVE-2023-53704: clk: imx: clk-imx8mp: improve error handling in imx8mp_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.29%, higher than 14% of CVEs (2026-11-30)
- Published: 2025-10-22T13:23:42.067Z
- Modified: 2026-10-28T19:10:00.193Z
- Assigned by: Linux

## Description

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

clk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()

Replace of_iomap() and kzalloc() with devm_of_iomap() and devm_kzalloc()
which can automatically release the related memory when the device
or driver is removed or unloaded to avoid potential memory leak.

In this case, iounmap(anatop_base) in line 427,433 are removed
as manual release is not required.

Besides, referring to clk-imx8mq.c, check the return code of
of_clk_add_hw_provider, if it returns negtive, print error info
and unregister hws, which makes the program more robust.

(As written by CVE List.)

## Affected

- Linux Linux: from 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 before cb047c13bbf9018693ae31f03a5a26b212d02f13; from 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 before bcea444ab4c045864b55d67313833d606676602a; from 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 before 6317d0302655f7e854cd4f31e93b47d35cb058bb; from 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 before 5bcf140e9e6cf76f1f1bd1f489a14ca4d49f9a1a; from 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 before 92ce7629a11ae62292e1cfaa6132dab081fc80ee; from 9c140d9926761b0f5d329ff6c09a1540f3d5e1d3 before 878b02d5f3b56cb090dbe2c70c89273be144087f; 5.6 (not affected: before 5.6; from 5.10.188 up to 5.10.*; from 5.15.121 up to 5.15.*; 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/cb047c13bbf9018693ae31f03a5a26b212d02f13>
- <https://git.kernel.org/stable/c/bcea444ab4c045864b55d67313833d606676602a>
- <https://git.kernel.org/stable/c/6317d0302655f7e854cd4f31e93b47d35cb058bb>
- <https://git.kernel.org/stable/c/5bcf140e9e6cf76f1f1bd1f489a14ca4d49f9a1a>
- <https://git.kernel.org/stable/c/92ce7629a11ae62292e1cfaa6132dab081fc80ee>
- <https://git.kernel.org/stable/c/878b02d5f3b56cb090dbe2c70c89273be144087f>

## Sources

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

---

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