soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe
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().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.19.250, 5.10.127, 5.15.51, 5.18.8, 5.4.202
- CVEs
- CVE-2022-49678
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 16:31 UTC · Revision 1
Source evidence
soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe
core-osv · Original sourcePublished 26 Feb 2025, 02:24 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().
osv:CVE-2022-49678
Kernel
Fixed versions: 4.19.250, 5.4.202, 5.10.127, 5.15.51, 5.18.8
Complete source record
{
"id": "641b3487fb6ba6db071238a8755f7f4de85190e6b4b917d604d7dd4c2e42d105",
"url": "https://osv.dev/vulnerability/CVE-2022-49678",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe",
"summary": "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().",
"evidence": "osv:CVE-2022-49678",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.19.250",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.202",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.127",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.51",
"evidence": "/affected/1/ranges"
},
{
"value": "5.18.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2022-49678",
"aliases": [
"CVE-2022-49678"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "0b741b8234c86065fb6954d32d427b3f7e14756f"
},
{
"fixed": "4f5877bdf7b593e988f1924f4c3df6523f80b39c"
},
{
"fixed": "734a4d15142bb4c8ecad2d8ec70d7564e78ae34d"
},
{
"fixed": "30bbfeb480ae8b5ee43199d72417b232590440c2"
},
{
"fixed": "10ba9d499a9fd82ed40897e734ba19870a879407"
},
{
"fixed": "dcafd5463d8f20c4f90ddc138a5738adb99f74c8"
},
{
"fixed": "37d838de369b07b596c19ff3662bf0293fdb09ee"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49678.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.250"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.202"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.127"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.51"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.18.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49678.json"
}
}
],
"modified": "2026-10-28T02:30:30.614446269Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/10ba9d499a9fd82ed40897e734ba19870a879407",
"https://git.kernel.org/stable/c/30bbfeb480ae8b5ee43199d72417b232590440c2",
"https://git.kernel.org/stable/c/37d838de369b07b596c19ff3662bf0293fdb09ee",
"https://git.kernel.org/stable/c/4f5877bdf7b593e988f1924f4c3df6523f80b39c",
"https://git.kernel.org/stable/c/734a4d15142bb4c8ecad2d8ec70d7564e78ae34d",
"https://git.kernel.org/stable/c/dcafd5463d8f20c4f90ddc138a5738adb99f74c8",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49678.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49678",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49678.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49678",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 497420,
"published_at": "2025-02-26T02:24:08.833+00:00"
}