# CVE-2023-52663: ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-05-17T13:41:05.630Z
- Modified: 2026-06-17T06:43:17.343Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from f7da88003c53cf0eedabe609324a047b1921dfcc before 88028c45d5871dfc449b2b0a27abf6428453a5ec; from f7da88003c53cf0eedabe609324a047b1921dfcc before be4760799c6a7c01184467287f0de41e0dd255f8; from f7da88003c53cf0eedabe609324a047b1921dfcc before 7296152e58858f928db448826eb7ba5ae611297b; from f7da88003c53cf0eedabe609324a047b1921dfcc before 222be59e5eed1554119294edc743ee548c2371d0; 6.6 (not affected: before 6.6; from 6.6.23 up to 6.6.*; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.6 before 6.6.23; from 6.7 before 6.7.11; from 6.8 before 6.8.2

## References

- <https://git.kernel.org/stable/c/88028c45d5871dfc449b2b0a27abf6428453a5ec> (patch)
- <https://git.kernel.org/stable/c/be4760799c6a7c01184467287f0de41e0dd255f8> (patch)
- <https://git.kernel.org/stable/c/7296152e58858f928db448826eb7ba5ae611297b> (patch)
- <https://git.kernel.org/stable/c/222be59e5eed1554119294edc743ee548c2371d0> (patch)

## Sources

- CVE List: [CVE-2023-52663](https://www.cve.org/CVERecord?id=CVE-2023-52663), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52663](https://nvd.nist.gov/vuln/detail/CVE-2023-52663), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52663 · Whole record: https://cve.day/CVE-2023-52663.json · Rebuilt by cve.day 2026-11-25T22:58:33.962Z
