MediumFix available
net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register
Type: advisorySources: OSV
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register of_get_child_by_name() 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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.17.15, 5.18.4
- CVEs
- CVE-2022-49342
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 03:00 UTC · Revision 1
Source evidence
net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register
core-osv · Original sourcePublished 26 Feb 2025, 02:10 UTC
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register of_get_child_by_name() 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.
osv:CVE-2022-49342
Kernel
Fixed versions: 5.17.15, 5.18.4
Complete source record
{
"id": "f89440deca213926002fe0674a6c2440a9ee2edf11f69ed587719f5505cd2064",
"url": "https://osv.dev/vulnerability/CVE-2022-49342",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register",
"summary": "In the Linux kernel, the following vulnerability has been resolved: net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register of_get_child_by_name() 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.",
"evidence": "osv:CVE-2022-49342",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.17.15",
"evidence": "/affected/1/ranges"
},
{
"value": "5.18.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2022-49342",
"aliases": [
"CVE-2022-49342"
],
"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": "55954f3bfdacc5908515b0c306cea23e77fab740"
},
{
"fixed": "b51996e35bbfcc7a27d94dfeed5cc2429b2c0df4"
},
{
"fixed": "7fb1fe7d9a167205413f1de8db9f7d0f82c78286"
},
{
"fixed": "b8d91399775c55162073bb2aca061ec42e3d4bc1"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49342.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.8.0"
},
{
"fixed": "5.17.15"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.18.0"
},
{
"fixed": "5.18.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49342.json"
}
}
],
"modified": "2026-10-28T02:30:53.216004759Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/7fb1fe7d9a167205413f1de8db9f7d0f82c78286",
"https://git.kernel.org/stable/c/b51996e35bbfcc7a27d94dfeed5cc2429b2c0df4",
"https://git.kernel.org/stable/c/b8d91399775c55162073bb2aca061ec42e3d4bc1",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49342.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49342",
"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-49342.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49342",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 522019,
"published_at": "2025-02-26T02:10:58.604+00:00"
}