# CVE-2022-48965: gpio/rockchip: fix refcount leak in rockchip_gpiolib_register()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-10-21T20:05:48.483Z
- Modified: 2026-06-17T05:16:43.903Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

gpio/rockchip: fix refcount leak in rockchip_gpiolib_register()

The node returned by of_get_parent() with refcount incremented,
of_node_put() needs be called when finish using it. So add it in the
end of of_pinctrl_get().

(As written by CVE List.)

## Affected

- Linux Linux: from 936ee2675eee1faca0dcdfa79165c7990422e0fc before 5cb8f1a784fd6115be58282fe15105572319d8be; from 936ee2675eee1faca0dcdfa79165c7990422e0fc before 033c79b7ee8a7bf1c1a13ac3addc91184425cbae; from 936ee2675eee1faca0dcdfa79165c7990422e0fc before 63ff545af73f759d1bd04198af8ed8577fb739fc; 5.15 (not affected: before 5.15; from 5.15.83 up to 5.15.*; from 6.0.13 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.15 before 5.15.83; from 5.16 before 6.0.13; 6.1

## References

- <https://git.kernel.org/stable/c/5cb8f1a784fd6115be58282fe15105572319d8be> (patch)
- <https://git.kernel.org/stable/c/033c79b7ee8a7bf1c1a13ac3addc91184425cbae> (patch)
- <https://git.kernel.org/stable/c/63ff545af73f759d1bd04198af8ed8577fb739fc> (patch)

## Sources

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

---

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