ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe()
In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe() Driver uses kasprintf() to initialize fw_{code,data}_bin members of struct acp_dev_data, but kfree() is never called to deallocate the memory, which results in a memory leak. Fix the issue by switching to devm_kasprintf(). Additionally, ensure the allocation was successful by checking the pointer validity.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.6.23, 6.7.11, 6.8.2
- CVEs
- CVE-2023-52663
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 12:43 UTC · Revision 1
Source evidence
ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe()
core-osv · Original sourcePublished 17 May 2024, 13:41 UTC
In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe() Driver uses kasprintf() to initialize fw_{code,data}_bin members of struct acp_dev_data, but kfree() is never called to deallocate the memory, which results in a memory leak. Fix the issue by switching to devm_kasprintf(). Additionally, ensure the allocation was successful by checking the pointer validity.
osv:CVE-2023-52663
Kernel
Fixed versions: 6.6.23, 6.7.11, 6.8.2
Complete source record
{
"id": "7844864e44d47f76faedf14831cae9b22e6e429bfa3c5cd872c0a98b9be0de42",
"url": "https://osv.dev/vulnerability/CVE-2023-52663",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe() Driver uses kasprintf() to initialize fw_{code,data}_bin members of struct acp_dev_data, but kfree() is never called to deallocate the memory, which results in a memory leak. Fix the issue by switching to devm_kasprintf(). Additionally, ensure the allocation was successful by checking the pointer validity.",
"evidence": "osv:CVE-2023-52663",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.23",
"evidence": "/affected/1/ranges"
},
{
"value": "6.7.11",
"evidence": "/affected/1/ranges"
},
{
"value": "6.8.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-52663",
"aliases": [
"CVE-2023-52663"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "f7da88003c53cf0eedabe609324a047b1921dfcc"
},
{
"fixed": "88028c45d5871dfc449b2b0a27abf6428453a5ec"
},
{
"fixed": "be4760799c6a7c01184467287f0de41e0dd255f8"
},
{
"fixed": "7296152e58858f928db448826eb7ba5ae611297b"
},
{
"fixed": "222be59e5eed1554119294edc743ee548c2371d0"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52663.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.0"
},
{
"fixed": "6.6.23"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.7.11"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.8.0"
},
{
"fixed": "6.8.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52663.json"
}
}
],
"modified": "2026-10-28T02:30:29.001471421Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/222be59e5eed1554119294edc743ee548c2371d0",
"https://git.kernel.org/stable/c/7296152e58858f928db448826eb7ba5ae611297b",
"https://git.kernel.org/stable/c/88028c45d5871dfc449b2b0a27abf6428453a5ec",
"https://git.kernel.org/stable/c/be4760799c6a7c01184467287f0de41e0dd255f8",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52663.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-52663",
"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/52xxx/CVE-2023-52663.json"
}
},
"related_cves": [
{
"value": "CVE-2023-52663",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 495530,
"published_at": "2024-05-17T13:41:05.63+00:00"
}