← CVE Intelligence

CVE-2023-52663

ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe() PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Linux / Linuxaffected f7da88003c53cf0eedabe609324a047b1921dfcc before 88028c45d5871dfc449b2b0a27abf6428453a5ec; affected f7da88003c53cf0eedabe609324a047b1921dfcc before be4760799c6a7c01184467287f0de41e0dd255f8; affected f7da88003c53cf0eedabe609324a047b1921dfcc before 7296152e58858f928db448826eb7ba5ae611297b; affected f7da88003c53cf0eedabe609324a047b1921dfcc before 222be59e5eed1554119294edc743ee548c2371d0
Linux / Linuxaffected 6.6; unaffected 0 before 6.6; unaffected 6.6.23 through 6.6.*; unaffected 6.7.11 through 6.7.*; unaffected 6.8.2 through 6.8.*; unaffected 6.9 through *

CWE

No CWE identifiers supplied.

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.

CVE

No English description supplied.