CVE-2023-54221

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

State
Published
Severity
Not scored
Published
Dec 30, 2025
Updated
May 11, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 24defbe194b650218680fcd9dec8cd103537b531 to before 280a5ff665e12d1e0c54c20cedc9c5008aa686a5Affected
  • 24defbe194b650218680fcd9dec8cd103537b531 to before fac9c624138c4bc021d7a8ee3b974c9e10926d92Affected
  • 24defbe194b650218680fcd9dec8cd103537b531 to before d17c16a2b2a6589c45b0bfb1b9914da80b72d89eAffected
  • 24defbe194b650218680fcd9dec8cd103537b531 to before e02ba11b457647050cb16e7cad16cec3c252fadeAffected
LinuxLinux
  • 5.18Affected
  • before 5.18Not affected
  • 6.1.39 through 6.1.*Not affected
  • 6.3.13 through 6.3.*Not affected
  • 6.4.4 through 6.4.*Not affected
  • 6.5 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.