Linux kernel resource leak in viai2c-wmt clock handling
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 560746eb79d3124a278452c8dd968682b521cc82 · < 5d476bb76b7d72d8b7ed04a9c614900b097e3af7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
i2c: viai2c-wmt: Fix clock leak in wmt_i2c_probe()
In wmt_i2c_probe(), i2c->clk is acquired using of_clk_get(). If any subsequent operation fails or when the module is unloaded, the clock reference count is never decremented via clk_put(), leading to a resource leak.
Switch to devm_clk_get() so that the clock is automatically managed and released.
From the CVE record · Linux
The Linux kernel's viai2c-wmt driver fails to release a clock reference if a later probe operation fails or the module is unloaded. The input does not describe an attacker path or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the viai2c-wmt driver should check their vendor's advisory; affected versions are not specified.