# CVE-2022-49591: net: dsa: microchip: ksz_common: Fix refcount leak bug

- 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:23:24.078Z
- Modified: 2026-06-17T05:18:33.580Z
- 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: dsa: microchip: ksz_common: Fix refcount leak bug

In ksz_switch_register(), we should call of_node_put() for the
reference returned by of_get_child_by_name() which has increased
the refcount.

(As written by CVE List.)

## Affected

- Linux Linux: from 912aae27c6af6605eae967ab540c5e26bd76d421 before 88ec2ff42da3ac93b2437dc52fe25cd4372148e6; from 912aae27c6af6605eae967ab540c5e26bd76d421 before 4165e02716518bbbe9c9104b39530d40928bc7ce; from 912aae27c6af6605eae967ab540c5e26bd76d421 before a14bd7475452c51835dd5a0cee4c8fa48dd0b539; 5.9 (not affected: before 5.9; from 5.15.58 up to 5.15.*; from 5.18.15 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.9 before 5.15.58; from 5.16 before 5.18.15; 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/88ec2ff42da3ac93b2437dc52fe25cd4372148e6> (mailing-list, patch)
- <https://git.kernel.org/stable/c/4165e02716518bbbe9c9104b39530d40928bc7ce> (mailing-list, patch)
- <https://git.kernel.org/stable/c/a14bd7475452c51835dd5a0cee4c8fa48dd0b539> (mailing-list, patch)

## Sources

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

---

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