Bug 2347880 (CVE-2022-49678) - CVE-2022-49678 kernel: soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe
Summary: CVE-2022-49678 kernel: soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in br...
Keywords:
Status: NEW
Alias: CVE-2022-49678
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:09 UTC by OSIDB Bzimport
Modified: 2025-03-16 13:21 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:09:57 UTC
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().

Comment 2 Avinash Hanwate 2025-02-28 00:42:00 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022625-CVE-2022-49678-d39c@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.