CVEvulnerability
CVE-2023-52663
5.5 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2024-05-17
- Last modified
- 2026-06-17
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-401
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.
Affected configurations
• linux linux kernel (>= 6.6 < 6.6.23)
• linux linux kernel (>= 6.7 < 6.7.11)
• linux linux kernel (>= 6.8 < 6.8.2)
Related
Weakness · CWE (1)
- CWE-401 Missing Release of Memory after Effective Lifetime weakness
References
- https://git.kernel.org/stable/c/222be59e5eed1554119294edc743ee548c2371d0 Patch
- https://git.kernel.org/stable/c/7296152e58858f928db448826eb7ba5ae611297b Patch
- https://git.kernel.org/stable/c/88028c45d5871dfc449b2b0a27abf6428453a5ec Patch
- https://git.kernel.org/stable/c/be4760799c6a7c01184467287f0de41e0dd255f8 Patch
- https://git.kernel.org/stable/c/222be59e5eed1554119294edc743ee548c2371d0 Patch
- https://git.kernel.org/stable/c/7296152e58858f928db448826eb7ba5ae611297b Patch
- https://git.kernel.org/stable/c/88028c45d5871dfc449b2b0a27abf6428453a5ec Patch
- https://git.kernel.org/stable/c/be4760799c6a7c01184467287f0de41e0dd255f8 Patch