CVE-2026-45868 Details
Description
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.
A refcount leak vulnerability has been identified in the Linux kernel's pinctrl subsystem, specifically within the 'pinctrl-single' driver. This issue arises in the 'pcs_add_gpio_func' function, where the 'of_parse_phandle_with_args' function returns a device_node pointer with an incremented reference count. The current implementation iterates through all phandles without releasing the references, leading to a memory leak. The vulnerability affects the Linux kernel stable tree and has been addressed by adding 'of_node_put' calls to release the references after the necessary arguments are extracted, as well as on the error path when memory allocation fails.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched version are available on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/191bfd5710d6a7f48ba4315d8d3e908dcc15243c | kernel.org | Patch |
| https://git.kernel.org/stable/c/353353309b0f7afa407df29e455f9d15b5acc296 | kernel.org | Patch |
| https://git.kernel.org/stable/c/3e3b28bb0b6ddc521a4fdd1c1ba0d35017a0796b | kernel.org | Patch |
| https://git.kernel.org/stable/c/456a60d06c09a92680dc35fabca68024badcc28e | kernel.org | Patch |
| https://git.kernel.org/stable/c/5b9e84d27e310f22c4ba45fedbc4f5baf43dd823 | kernel.org | Patch |
| https://git.kernel.org/stable/c/7814b1431848854b56717086e2b61bea3c59753d | kernel.org | Patch |
| https://git.kernel.org/stable/c/99cc7352156c65201c675f750e0e77c4c73d93f5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/e2e367e56bacb93ce5ac73f0b3297d5c83d38dd4 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-Other | Weakness Not in a Standard CWE Category | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.10, < 5.10.252 >= 5.11, < 5.15.202 >= 5.16, < 6.1.165 >= 6.2, < 6.6.128 >= 6.7, < 6.12.75 >= 6.13, < 6.18.14 >= 6.19, < 6.19.4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 25, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| May 27, 2026 | New CVE Received | kernel.org |