ASoC: amd: acp3x-rt5682-max9836: Add missing error check for clock acquisition
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6b8e4e7db3cd236a2cbb720360fb135087a2ac1d · < 790851ecc983c719fa2e6adb17b02f3acc1d217d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: amd: acp3x-rt5682-max9836: Add missing error check for clock acquisition
The acp3x_5682_init() function did not check the return value of clk_get(), which could lead to dereferencing error pointers in rt5682_clk_enable().
Fix this by: 1. Changing clk_get() to the device-managed devm_clk_get(). 2. Adding proper IS_ERR() checks for both clock acquisitions.
From the CVE record · Linux
The AMD ASoC acp3x-rt5682-max9836 driver did not check whether clock acquisition failed. If it fails, rt5682_clk_enable() could dereference an error pointer. The input does not establish how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running Linux kernels with the AMD ASoC acp3x-rt5682-max9836 driver should check their installations; affected versions are not specified.