fsl/fman: Fix clk reference leak in read_dts_node()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 414fd46e77626f4e1f89ab4be6b876ef91e89dfa · < c2a5e591858629b6c0e284010d2ccdbc22fd0a43| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fsl/fman: Fix clk reference leak in read_dts_node()
of_clk_get() returns a clock with its reference count incremented, but read_dts_node() only uses it to read the rate and never calls clk_put(). The clock is not stored anywhere, so the reference cannot be released later either.
Release the clock once its rate has been read, which also covers the error path taken when the rate is zero.
From the CVE record · Linux
The Linux kernel's fsl/fman read_dts_node() function does not release a clock reference after reading its rate, including when the rate is zero. The input does not describe an attacker action or specify access requirements or user interaction.
Engineers running the Linux kernel with fsl/fman should check their kernel; affected versions are not specified.