ASoC: amd: acp-mach-common: Add missing error check for clock acquisition
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d4c750f2c7d44b5b39e197308bc3f510205bba4b · < 30c64fb9839949f085c8eb55b979cbd8a4c51f00| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: amd: acp-mach-common: Add missing error check for clock acquisition
The acp_card_rt5682_init() and acp_card_rt5682s_init() functions did not check the return values of clk_get(). This could lead to a kernel crash when the invalid pointers are later dereferenced by clock core functions.
Fix this by: 1. Changing clk_get() to the device-managed devm_clk_get(). 2. Adding IS_ERR() checks immediately after each clock acquisition.
From the CVE record · Linux
The Linux kernel's AMD ASoC acp-mach-common code fails to check clock acquisition errors. Invalid pointers can later be dereferenced, causing a kernel crash. The input does not specify an attack path, authentication requirements, or user interaction.
Engineers running Linux kernels with the AMD ASoC acp-mach-common code should check their versions; affected versions are not specified.