Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected d4c750f2c7d44b5b39e197308bc3f510205bba4b before a71ce398347fed9422dbd5c6458f7f8348012c64; affected d4c750f2c7d44b5b39e197308bc3f510205bba4b before 53682a55cac6f159311c63d04f3d7ba64a8a455a; affected d4c750f2c7d44b5b39e197308bc3f510205bba4b before e0e31a7ed1191c12a28763bb70c4c7f5adadc79d; affected d4c750f2c7d44b5b39e197308bc3f510205bba4b before 0cee68fb7f4cf1562e067c5a82d25062a973b0d0; affected d4c750f2c7d44b5b39e197308bc3f510205bba4b before 30c64fb9839949f085c8eb55b979cbd8a4c51f00 |
| Linux / Linux | affected 5.16; unaffected 0 before 5.16; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.57 through 6.18.*; unaffected 6.19.9 through 6.19.*; unaffected 7.0 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/a71ce398347fed9422dbd5c6458f7f8348012c64
- https://git.kernel.org/stable/c/53682a55cac6f159311c63d04f3d7ba64a8a455a
- https://git.kernel.org/stable/c/e0e31a7ed1191c12a28763bb70c4c7f5adadc79d
- https://git.kernel.org/stable/c/0cee68fb7f4cf1562e067c5a82d25062a973b0d0
- https://git.kernel.org/stable/c/30c64fb9839949f085c8eb55b979cbd8a4c51f00