CVE-2026-45868
MEDIUMpinctrl: single: fix refcount leak in pcs_add_gpio_func()
Title source: cnaDescription
In the Linux kernel, the following vulnerability has been resolved: pinctrl: single: fix refcount leak in pcs_add_gpio_func() of_parse_phandle_with_args() returns a device_node pointer with refcount incremented in gpiospec.np. The loop iterates through all phandles but never releases the reference, causing a refcount leak on each iteration. Add of_node_put() calls to release the reference after extracting the needed arguments and on the error path when devm_kzalloc() fails. This bug was detected by our static analysis tool and verified by my code review.
References (8)
Core 8
Core References
Scores
CVSS v3
5.5
EPSS
0.0016
EPSS Percentile
5.1%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
Status
published
Products (26)
linux/Kernel
3.10.0 - 5.10.252linux
linux/Kernel
5.11.0 - 5.15.202linux
linux/Kernel
5.16.0 - 6.1.165linux
linux/Kernel
6.13.0 - 6.18.14linux
linux/Kernel
6.19.0 - 6.19.4linux
linux/Kernel
6.2.0 - 6.6.128linux
linux/Kernel
6.7.0 - 6.12.75linux
Linux/Linux
< 3.10
Linux/Linux
3.10
Linux/Linux
5.10.252 - 5.10.*
... and 16 more
Published
May 27, 2026
Tracked Since
May 27, 2026