CVE-2026-98746: serial: ma35d1: Fix clock reference leak in ma35d1serial_probe()
In the Linux kernel, the following vulnerability has been resolved:
serial: ma35d1: Fix clock reference leak in ma35d1serialprobe()
ofclkget() returns a clock with a reference that has to be released with clkput(). ma35d1serialprobe() 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 ma35d1serialremove().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Call clk_put() to release the clock reference returned by of_clk_get() on ma35d1serial_probe() error paths and in ma35d1serial_remove().