# CVE-2022-49351: net: altera: Fix refcount leak in altera_tse_mdio_create

- 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.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-02-26T02:11:04.014Z
- Modified: 2026-06-17T05:17:47.787Z
- 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: altera: Fix refcount leak in altera_tse_mdio_create

Every iteration of for_each_child_of_node() decrements
the reference count of the previous node.
When break from a for_each_child_of_node() loop,
we need to explicitly call of_node_put() on the child node when
not need anymore.
Add missing of_node_put() to avoid refcount leak.

(As written by CVE List.)

## Affected

- Linux Linux: from bbd2190ce96d8fce031f0526c1f970b68adc9d1a before a013fa884d8738ad8455aa1a843b8c9d80c6c833; from bbd2190ce96d8fce031f0526c1f970b68adc9d1a before 1fd12298a0e0ca23478c715e672ee64c85670584; from bbd2190ce96d8fce031f0526c1f970b68adc9d1a before 5cd0e22fa11f4a21a8c09cc258f20b1474c95801; from bbd2190ce96d8fce031f0526c1f970b68adc9d1a before 8174acbef87b8dd8bf3731eba2a5af1ac857e239; from bbd2190ce96d8fce031f0526c1f970b68adc9d1a before 96bf5ed057df2d157274d4e2079002f9a9404bb8; from bbd2190ce96d8fce031f0526c1f970b68adc9d1a before e31d9ba169860687dba19bdc8fccbfd34077f655; from bbd2190ce96d8fce031f0526c1f970b68adc9d1a before 803b217f1fb49a2dbb2123acdb45111b9c48b8be; from bbd2190ce96d8fce031f0526c1f970b68adc9d1a before 4f850fe0a32c3f1e19b76996a3b1ca32637a14de; from bbd2190ce96d8fce031f0526c1f970b68adc9d1a before 11ec18b1d8d92b9df307d31950dcba0b3dd7283c; 3.15 (not affected: before 3.15; from 4.9.318 up to 4.9.*; from 4.14.283 up to 4.14.*; from 4.19.247 up to 4.19.*; from 5.4.198 up to 5.4.*; from 5.10.122 up to 5.10.*; from 5.15.47 up to 5.15.*; 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 3.15 before 4.9.318; from 4.10 before 4.14.283; from 4.15 before 4.19.247; from 4.20 before 5.4.198; from 5.5 before 5.10.122; from 5.11 before 5.15.47; from 5.16 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/a013fa884d8738ad8455aa1a843b8c9d80c6c833> (patch)
- <https://git.kernel.org/stable/c/1fd12298a0e0ca23478c715e672ee64c85670584> (patch)
- <https://git.kernel.org/stable/c/5cd0e22fa11f4a21a8c09cc258f20b1474c95801> (patch)
- <https://git.kernel.org/stable/c/8174acbef87b8dd8bf3731eba2a5af1ac857e239> (patch)
- <https://git.kernel.org/stable/c/96bf5ed057df2d157274d4e2079002f9a9404bb8> (patch)
- <https://git.kernel.org/stable/c/e31d9ba169860687dba19bdc8fccbfd34077f655> (patch)
- <https://git.kernel.org/stable/c/803b217f1fb49a2dbb2123acdb45111b9c48b8be> (patch)
- <https://git.kernel.org/stable/c/4f850fe0a32c3f1e19b76996a3b1ca32637a14de> (patch)
- <https://git.kernel.org/stable/c/11ec18b1d8d92b9df307d31950dcba0b3dd7283c> (patch)

## Sources

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

---

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