soc: qcom: aoss: Fix refcount leak in qmp_cooling_devices_register
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 05589b30b21ac0273970b61edd50c07d2ba156af · < e6e0951414a314e7db3e9e24fd924b3e15515288| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
soc: qcom: aoss: Fix refcount leak in qmp_cooling_devices_register
Every iteration of for_each_available_child_of_node() decrements the reference count of the previous node. When breaking early from a for_each_available_child_of_node() loop, we need to explicitly call of_node_put() on the child node. Add missing of_node_put() to avoid refcount leak.
From the CVE record · Linux
The Linux kernel’s Qualcomm AOSS cooling-device registration code can leak a device-tree node reference when it exits a child-node loop early. The input does not specify how an attacker could trigger the leak or whether access or user interaction is required.
Teams running Linux kernels with the Qualcomm AOSS cooling-device registration code should check their versions; affected versions are not specified.