soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0b741b8234c86065fb6954d32d427b3f7e14756f · < 37d838de369b07b596c19ff3662bf0293fdb09ee| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
The Linux kernel’s Broadcom STB power-management probe can leak a device-tree node reference by failing to release it. The input does not describe an attacker action or establish whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running Linux kernels with Broadcom STB power-management support should check their deployments; affected versions were not provided.