# CVE-2022-49342: net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-02-26T02:10:58.604Z
- Modified: 2026-06-17T05:17:46.230Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 55954f3bfdacc5908515b0c306cea23e77fab740 before b51996e35bbfcc7a27d94dfeed5cc2429b2c0df4; from 55954f3bfdacc5908515b0c306cea23e77fab740 before 7fb1fe7d9a167205413f1de8db9f7d0f82c78286; from 55954f3bfdacc5908515b0c306cea23e77fab740 before b8d91399775c55162073bb2aca061ec42e3d4bc1; 4.8 (not affected: before 4.8; from 5.17.15 up to 5.17.*; from 5.18.4 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 4.8 before 5.17.15; from 5.18 before 5.18.4; 5.19

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/b51996e35bbfcc7a27d94dfeed5cc2429b2c0df4> (patch)
- <https://git.kernel.org/stable/c/7fb1fe7d9a167205413f1de8db9f7d0f82c78286> (patch)
- <https://git.kernel.org/stable/c/b8d91399775c55162073bb2aca061ec42e3d4bc1> (patch)

## Sources

- CVE List: [CVE-2022-49342](https://www.cve.org/CVERecord?id=CVE-2022-49342), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49342](https://nvd.nist.gov/vuln/detail/CVE-2022-49342), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49342 · Whole record: https://cve.day/CVE-2022-49342.json · Rebuilt by cve.day 2026-11-25T22:58:20.429Z
