soc: qcom: smsm: Fix refcount leak bugs in qcom_smsm_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c97c4090ff72297a878a37715bd301624b71c885 · < 96e0028debdd07a6d582f0dfadf9a3ec2b5fffff| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
soc: qcom: smsm: Fix refcount leak bugs in qcom_smsm_probe()
There are two refcount leak bugs in qcom_smsm_probe():
(1) The 'local_node' is escaped out from for_each_child_of_node() as the break of iteration, we should call of_node_put() for it in error path or when it is not used anymore. (2) The 'node' is escaped out from for_each_available_child_of_node() as the 'goto', we should call of_node_put() for it in goto target.
From the CVE record · Linux
The Linux kernel's qcom_smsm_probe() function has two device-tree node reference count leaks. The input does not describe an attacker-controlled effect or specify whether exploitation requires network or local access, authentication, or user interaction.
Engineers running Linux kernels with the Qualcomm SMSM driver should check their versions; affected versions are not specified.