thermal/of: Fix reference leak in thermal_of_cm_lookup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
thermal/of: Fix reference leak in thermal_of_cm_lookup()
In thermal_of_cm_lookup(), tr_np is obtained via of_parse_phandle(), but never released.
Use the __free(device_node) cleanup attribute to automatically release the node and fix the leak.
[ rjw: Changelog edits ]
From the CVE record · Linux
The Linux kernel's thermal_of_cm_lookup() function fails to release a device-node reference obtained through of_parse_phandle(), causing a reference leak. The input does not describe what an attacker could do or specify access or interaction requirements.
Engineers running Linux kernels with the affected thermal/of code should check their installations; affected versions are not specified.