power: supply: rk817: Fix node refcount leak
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 |
|
06.1.566.5.66.6In the Linux kernel, the following vulnerability has been resolved:
power: supply: rk817: Fix node refcount leak
Dan Carpenter reports that the Smatch static checker warning has found that there is another refcount leak in the probe function. While of_node_put() was added in one of the return paths, it should in fact be added for ALL return paths that return an error and at driver removal time.
From the CVE record · Linux
The rk817 power supply driver leaks a node reference on probe error paths and at driver removal. The input does not describe how an attacker could trigger or exploit the leak, or whether access or user interaction is required.
Engineers running Linux kernels with the rk817 power supply driver should check their kernel versions; affected versions are not specified.