CVE-2022-49678
JSON

5.5medium

soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.27% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe of_find_matching_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. In brcmstb_init_sram, it pass dn to of_address_to_resource(), of_address_to_resource() will call of_find_device_by_node() to take reference, so we should release the reference returned by of_find_matching_node().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 0b741b8234c86065fb6954d32d427b3f7e14756f before 4f5877bdf7b593e988f1924f4c3df6523f80b39c, from 0b741b8234c86065fb6954d32d427b3f7e14756f before 734a4d15142bb4c8ecad2d8ec70d7564e78ae34d, from 0b741b8234c86065fb6954d32d427b3f7e14756f before 30bbfeb480ae8b5ee43199d72417b232590440c2, from 0b741b8234c86065fb6954d32d427b3f7e14756f before 10ba9d499a9fd82ed40897e734ba19870a879407, from 0b741b8234c86065fb6954d32d427b3f7e14756f before dcafd5463d8f20c4f90ddc138a5738adb99f74c8, from 0b741b8234c86065fb6954d32d427b3f7e14756f before 37d838de369b07b596c19ff3662bf0293fdb09ee, 4.15
Not affected: before 4.15, from 4.19.250 up to 4.19.*, from 5.4.202 up to 5.4.*, from 5.10.127 up to 5.10.*, from 5.15.51 up to 5.15.*, from 5.18.8 up to 5.18.*
CVE List
linux linux_kernelfrom 4.15 before 4.19.250, from 4.20 before 5.4.202, from 5.5 before 5.10.127, from 5.11 before 5.15.51, from 5.16 before 5.18.8, 5.19NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe of_find_matching_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. In brcmstb_init_sram, it pass dn to of_address_to_resource(), of_address_to_resource() will call of_find_device_by_node() to take reference, so we should release the reference returned by of_find_matching_node().

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: soc: bcm: brcmstb: pm: pm-arm: Se corrige la pérdida de refcount en brcmstb_pm_probe of_find_matching_node() devuelve un puntero de nodo con refcount incrementado, deberíamos usar of_node_put() en él cuando ya no lo necesitemos. Agrega of_node_put() faltante para evitar la pérdida de refcount. En brcmstb_init_sram, pasa dn a of_address_to_resource(), of_address_to_resource() llamará a of_find_device_by_node() para tomar la referencia, por lo que deberíamos liberar la referencia devuelta por of_find_matching_node().

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49678 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-49678 changed 2026-06-17Public domain