serial: ma35d1: Fix clock reference leak in ma35d1serial_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
serial: ma35d1: Fix clock reference leak in ma35d1serial_probe()
of_clk_get() returns a clock with a reference that has to be released with clk_put(). ma35d1serial_probe() never does that, so the reference is leaked on the probe error paths and also when the port is removed.
Release it on the error paths and in ma35d1serial_remove().
From the CVE record · Linux
The ma35d1 serial driver in the Linux kernel fails to release a clock reference when probing fails or the port is removed. The input does not describe an attacker impact, access requirements, or user interaction.
Engineers running Linux kernels with the ma35d1 serial driver should check their deployments; affected versions are not specified.