Not scored
soc: qcom: smsm: Fix refcount leak bugs in qcom_smsm_probe()
- Severity
- Not scored
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from c97c4090ff72297a878a37715bd301624b71c885 before 1bbe75d466e5118b7d49ef4a346c3ce5742da4e8, from c97c4090ff72297a878a37715bd301624b71c885 before bd4666bf5562fe8e8e5e9bd6fc805d30e1767f43, from c97c4090ff72297a878a37715bd301624b71c885 before 42df28994eba7b56c762f7bbe7efd5611a1cd15b, from c97c4090ff72297a878a37715bd301624b71c885 before 1e3ed59370c712df436791efed120f0c082aa9bc, from c97c4090ff72297a878a37715bd301624b71c885 before 39781c98ad46b4e85053345dff797240c1ed7935, from c97c4090ff72297a878a37715bd301624b71c885 before 96e0028debdd07a6d582f0dfadf9a3ec2b5fffff, from c97c4090ff72297a878a37715bd301624b71c885 before 8fb6112bd49c0e49f2cf51604231d85ff00284bb, from c97c4090ff72297a878a37715bd301624b71c885 before ee7fc83ce0e6986ff9b1c1d7e994fbbf8d43861d and 2 more Not affected: before 4.5, from 4.9.331 up to 4.9.*, from 4.14.296 up to 4.14.*, from 4.19.262 up to 4.19.*, from 5.4.220 up to 5.4.*, from 5.10.150 up to 5.10.* | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha corregido la siguiente vulnerabilidad:\n\nsoc: qcom: smsm: Corrige errores de fuga de refcount en qcom_smsm_probe()\n\nHay dos errores de fuga de refcount en qcom_smsm_probe():\n\n(1) El ’local_node’ se escapa de for_each_child_of_node() como la interrupción de la iteración; debemos llamar a of_node_put() para él en la ruta de error o cuando ya no se use.\n\n(2) El ’node’ se escapa de for_each_available_child_of_node() como el ’goto’; debemos llamar a of_node_put() para él en el objetivo del goto.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50703 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-50703 changed 2026-11-10 | Public domain |