Bug 2426031 (CVE-2023-54221) - CVE-2023-54221 kernel: clk: imx93: fix memory leak and missing unwind goto in imx93_clocks_probe
Summary: CVE-2023-54221 kernel: clk: imx93: fix memory leak and missing unwind goto in...
Keywords:
Status: NEW
Alias: CVE-2023-54221
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-30 13:03 UTC by OSIDB Bzimport
Modified: 2025-12-31 14:27 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-30 13:03:24 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.