ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's AMD SOF driver leaks memory in amd_sof_acp_probe() because allocations for firmware filename fields are not freed. The input does not describe how an attacker could trigger the leak or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the AMD SOF driver should check their kernel versions; affected versions are not specified.