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

CVE-2023-54221
Not available

At a glance

Source
NVD
EPSS
EPSS 0.20 % · percentile 10 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Deferred

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.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 24defbe194b650218680fcd9dec8cd103537b531 < 280a5ff665e12d1e0c54c20cedc9c5008aa686a5 ; affected 24defbe194b650218680fcd9dec8cd103537b531 < fac9c624138c4bc021d7a8ee3b974c9e10926d92 ; affected 24defbe194b650218680fcd9dec8cd103537b531 < d17c16a2b2a6589c45b0bfb1b9914da80b72d89e ; affected 24defbe194b650218680fcd9dec8cd103537b531 < e02ba11b457647050cb16e7cad16cec3c252fade
Linux · Linuxaffected 5.18 ; unaffected 0 < 5.18 ; unaffected 6.1.39 ≤ 6.1.* ; unaffected 6.3.13 ≤ 6.3.* ; unaffected 6.4.4 ≤ 6.4.* ; unaffected 6.5 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD