gpio/rockchip: fix refcount leak in rockchip_gpiolib_register()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.15.836.0.136.1In 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().
From the CVE record · Linux
The Linux kernel's Rockchip GPIO registration code leaks a device-tree node reference by not releasing a parent node after use. The input does not establish what an attacker could do with this issue or specify network or local access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the Rockchip GPIO component should check their kernel versions; affected versions are not specified in the input.