clk: mediatek: mt7622-apmixedsys: Fix an error handling path in clk_mt8135_apmixed_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:
clk: mediatek: mt7622-apmixedsys: Fix an error handling path in clk_mt8135_apmixed_probe()
'clk_data' is allocated with mtk_devm_alloc_clk_data(). So calling mtk_free_clk_data() explicitly in the remove function would lead to a double-free.
Remove the redundant call.
From the CVE record · Linux
The Linux kernel’s MediaTek clock driver explicitly frees clock data in its remove function even though the data is already device-managed, causing a double-free. The input does not establish how an attacker could trigger this path or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their kernel includes the affected MediaTek clock driver; affected versions are not specified.