{"id":"CVE-2023-53704","state":"PUBLISHED","title":"clk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()\n\nReplace of_iomap() and kzalloc() with devm_of_iomap() and devm_kzalloc()\nwhich can automatically release the related memory when the device\nor driver is removed or unloaded to avoid potential memory leak.\n\nIn this case, iounmap(anatop_base) in line 427,433 are removed\nas manual release is not required.\n\nBesides, referring to clk-imx8mq.c, check the return code of\nof_clk_add_hw_provider, if it returns negtive, print error info\nand unregister hws, which makes the program more robust.","publishedAt":"2025-10-22T13:23:42.067Z","updatedAt":"2026-05-11T19:50:14.396Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"cb047c13bbf9018693ae31f03a5a26b212d02f13","versionType":"git"},{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"bcea444ab4c045864b55d67313833d606676602a","versionType":"git"},{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"6317d0302655f7e854cd4f31e93b47d35cb058bb","versionType":"git"},{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"5bcf140e9e6cf76f1f1bd1f489a14ca4d49f9a1a","versionType":"git"},{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"92ce7629a11ae62292e1cfaa6132dab081fc80ee","versionType":"git"},{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"878b02d5f3b56cb090dbe2c70c89273be144087f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/imx/clk-imx8mp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"5.10.188","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.121","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.39","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.3.13","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4.4","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/imx/clk-imx8mp.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53704.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53704","state":"PUBLISHED","datePublished":"2025-10-22T13:23:42.067Z","dateUpdated":"2026-05-11T19:50:14.396Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-22T13:21:37.345Z"},"containers":{"cna":{"title":"clk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()\n\nReplace of_iomap() and kzalloc() with devm_of_iomap() and devm_kzalloc()\nwhich can automatically release the related memory when the device\nor driver is removed or unloaded to avoid potential memory leak.\n\nIn this case, iounmap(anatop_base) in line 427,433 are removed\nas manual release is not required.\n\nBesides, referring to clk-imx8mq.c, check the return code of\nof_clk_add_hw_provider, if it returns negtive, print error info\nand unregister hws, which makes the program more robust."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"cb047c13bbf9018693ae31f03a5a26b212d02f13","versionType":"git"},{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"bcea444ab4c045864b55d67313833d606676602a","versionType":"git"},{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"6317d0302655f7e854cd4f31e93b47d35cb058bb","versionType":"git"},{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"5bcf140e9e6cf76f1f1bd1f489a14ca4d49f9a1a","versionType":"git"},{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"92ce7629a11ae62292e1cfaa6132dab081fc80ee","versionType":"git"},{"version":"9c140d9926761b0f5d329ff6c09a1540f3d5e1d3","status":"affected","lessThan":"878b02d5f3b56cb090dbe2c70c89273be144087f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/imx/clk-imx8mp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"5.10.188","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.121","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.39","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.3.13","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4.4","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/imx/clk-imx8mp.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cb047c13bbf9018693ae31f03a5a26b212d02f13"},{"url":"https://git.kernel.org/stable/c/bcea444ab4c045864b55d67313833d606676602a"},{"url":"https://git.kernel.org/stable/c/6317d0302655f7e854cd4f31e93b47d35cb058bb"},{"url":"https://git.kernel.org/stable/c/5bcf140e9e6cf76f1f1bd1f489a14ca4d49f9a1a"},{"url":"https://git.kernel.org/stable/c/92ce7629a11ae62292e1cfaa6132dab081fc80ee"},{"url":"https://git.kernel.org/stable/c/878b02d5f3b56cb090dbe2c70c89273be144087f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:50:14.396Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.10.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.15.121"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.1.39"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.3.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.4.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}