In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: amd: Fix memory leak in amdsofacp_probe()
Driver uses kasprintf() to initialize fw{code,data}bin members of struct acpdevdata, 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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52663.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52663.json"
[
{
"id": "CVE-2023-52663-06b29542",
"target": {
"function": "amd_sof_acp_probe",
"file": "sound/soc/sof/amd/acp.c"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88028c45d5871dfc449b2b0a27abf6428453a5ec",
"digest": {
"function_hash": "3132237898651052614698648975986057517",
"length": 2645.0
},
"signature_type": "Function"
},
{
"id": "CVE-2023-52663-4cde59a1",
"target": {
"file": "sound/soc/sof/amd/acp.c"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@222be59e5eed1554119294edc743ee548c2371d0",
"digest": {
"threshold": 0.9,
"line_hashes": [
"122010490128430218871311424082529941938",
"100365473514337995530404028140531424450",
"83323953444929647100414374481040179626",
"337114556257997760107176342468394458003",
"76740813113415819322892949859382073282",
"306728695663459992236627719433940921440",
"95272596724148371117075210533533883339",
"245901631737622555912109283751525431673",
"124367837180902829691193991537014922195",
"59120535991401150471796502788662060823",
"231693897432122025133126558210395223727",
"326454970516712955748173170479470711652",
"51093966578022291864499075124604244444"
]
},
"signature_type": "Line"
},
{
"id": "CVE-2023-52663-67da23d9",
"target": {
"function": "amd_sof_acp_probe",
"file": "sound/soc/sof/amd/acp.c"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@be4760799c6a7c01184467287f0de41e0dd255f8",
"digest": {
"function_hash": "3132237898651052614698648975986057517",
"length": 2645.0
},
"signature_type": "Function"
},
{
"id": "CVE-2023-52663-6d9ca62e",
"target": {
"function": "amd_sof_acp_probe",
"file": "sound/soc/sof/amd/acp.c"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7296152e58858f928db448826eb7ba5ae611297b",
"digest": {
"function_hash": "3132237898651052614698648975986057517",
"length": 2645.0
},
"signature_type": "Function"
},
{
"id": "CVE-2023-52663-82a5795f",
"target": {
"function": "amd_sof_acp_probe",
"file": "sound/soc/sof/amd/acp.c"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@222be59e5eed1554119294edc743ee548c2371d0",
"digest": {
"function_hash": "3132237898651052614698648975986057517",
"length": 2645.0
},
"signature_type": "Function"
},
{
"id": "CVE-2023-52663-9045626d",
"target": {
"file": "sound/soc/sof/amd/acp.c"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@be4760799c6a7c01184467287f0de41e0dd255f8",
"digest": {
"threshold": 0.9,
"line_hashes": [
"122010490128430218871311424082529941938",
"100365473514337995530404028140531424450",
"83323953444929647100414374481040179626",
"337114556257997760107176342468394458003",
"76740813113415819322892949859382073282",
"306728695663459992236627719433940921440",
"95272596724148371117075210533533883339",
"245901631737622555912109283751525431673",
"124367837180902829691193991537014922195",
"59120535991401150471796502788662060823",
"231693897432122025133126558210395223727",
"326454970516712955748173170479470711652",
"51093966578022291864499075124604244444"
]
},
"signature_type": "Line"
},
{
"id": "CVE-2023-52663-93b8ebf6",
"target": {
"file": "sound/soc/sof/amd/acp.c"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7296152e58858f928db448826eb7ba5ae611297b",
"digest": {
"threshold": 0.9,
"line_hashes": [
"122010490128430218871311424082529941938",
"100365473514337995530404028140531424450",
"83323953444929647100414374481040179626",
"337114556257997760107176342468394458003",
"76740813113415819322892949859382073282",
"306728695663459992236627719433940921440",
"95272596724148371117075210533533883339",
"245901631737622555912109283751525431673",
"124367837180902829691193991537014922195",
"59120535991401150471796502788662060823",
"231693897432122025133126558210395223727",
"326454970516712955748173170479470711652",
"51093966578022291864499075124604244444"
]
},
"signature_type": "Line"
},
{
"id": "CVE-2023-52663-a4f4745b",
"target": {
"file": "sound/soc/sof/amd/acp.c"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88028c45d5871dfc449b2b0a27abf6428453a5ec",
"digest": {
"threshold": 0.9,
"line_hashes": [
"122010490128430218871311424082529941938",
"100365473514337995530404028140531424450",
"83323953444929647100414374481040179626",
"337114556257997760107176342468394458003",
"76740813113415819322892949859382073282",
"306728695663459992236627719433940921440",
"95272596724148371117075210533533883339",
"245901631737622555912109283751525431673",
"124367837180902829691193991537014922195",
"59120535991401150471796502788662060823",
"231693897432122025133126558210395223727",
"326454970516712955748173170479470711652",
"51093966578022291864499075124604244444"
]
},
"signature_type": "Line"
}
]