clk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.188, 5.15.121, 6.1.39, 6.3.13, 6.4.4
- CVEs
- CVE-2023-53704
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 04:14 UTC · Revision 1
Source evidence
clk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()
core-osv · Original sourcePublished 22 Oct 2025, 13:23 UTC
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.
osv:CVE-2023-53704
Kernel
Fixed versions: 5.10.188, 5.15.121, 6.1.39, 6.3.13, 6.4.4
Complete source record
{
"id": "08b732e6e10a02b7341add79cb82af66f92c222e25c2bb8f1a0642ea74369155",
"url": "https://osv.dev/vulnerability/CVE-2023-53704",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "clk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()",
"summary": "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.",
"evidence": "osv:CVE-2023-53704",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.188",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.121",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.39",
"evidence": "/affected/1/ranges"
},
{
"value": "6.3.13",
"evidence": "/affected/1/ranges"
},
{
"value": "6.4.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-53704",
"aliases": [
"CVE-2023-53704"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "9c140d9926761b0f5d329ff6c09a1540f3d5e1d3"
},
{
"fixed": "cb047c13bbf9018693ae31f03a5a26b212d02f13"
},
{
"fixed": "bcea444ab4c045864b55d67313833d606676602a"
},
{
"fixed": "6317d0302655f7e854cd4f31e93b47d35cb058bb"
},
{
"fixed": "5bcf140e9e6cf76f1f1bd1f489a14ca4d49f9a1a"
},
{
"fixed": "92ce7629a11ae62292e1cfaa6132dab081fc80ee"
},
{
"fixed": "878b02d5f3b56cb090dbe2c70c89273be144087f"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53704.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.6.0"
},
{
"fixed": "5.10.188"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.121"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.39"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.3.13"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.4.0"
},
{
"fixed": "6.4.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53704.json"
}
}
],
"modified": "2026-10-30T02:30:26.171597276Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/5bcf140e9e6cf76f1f1bd1f489a14ca4d49f9a1a",
"https://git.kernel.org/stable/c/6317d0302655f7e854cd4f31e93b47d35cb058bb",
"https://git.kernel.org/stable/c/878b02d5f3b56cb090dbe2c70c89273be144087f",
"https://git.kernel.org/stable/c/92ce7629a11ae62292e1cfaa6132dab081fc80ee",
"https://git.kernel.org/stable/c/bcea444ab4c045864b55d67313833d606676602a",
"https://git.kernel.org/stable/c/cb047c13bbf9018693ae31f03a5a26b212d02f13",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53704.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53704",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53704.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53704",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 510173,
"published_at": "2025-10-22T13:23:42.067+00:00"
}