CVE-2026-45868
pinctrl: single: fix refcount leak in pcs_add_gpio_func()
Check your servers for CVE-2026-45868
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-45868 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.00% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from a1a277eb76b3507df7c41774048a644aa4dfd096, before 191bfd5710d6a7f48ba4315d8d3e908dcc15243c affected from a1a277eb76b3507df7c41774048a644aa4dfd096, before 3e3b28bb0b6ddc521a4fdd1c1ba0d35017a0796b affected from a1a277eb76b3507df7c41774048a644aa4dfd096, before 456a60d06c09a92680dc35fabca68024badcc28e affected from a1a277eb76b3507df7c41774048a644aa4dfd096, before 99cc7352156c65201c675f750e0e77c4c73d93f5 affected from a1a277eb76b3507df7c41774048a644aa4dfd096, before 7814b1431848854b56717086e2b61bea3c59753d affected from a1a277eb76b3507df7c41774048a644aa4dfd096, before e2e367e56bacb93ce5ac73f0b3297d5c83d38dd4 affected from a1a277eb76b3507df7c41774048a644aa4dfd096, before 5b9e84d27e310f22c4ba45fedbc4f5baf43dd823 affected from a1a277eb76b3507df7c41774048a644aa4dfd096, before 353353309b0f7afa407df29e455f9d15b5acc296
Other versions: unaffected
|
| Linux |
affected 3.10 unaffected before 3.10 unaffected from 5.10.252 up to and including 5.10.* unaffected from 5.15.202 up to and including 5.15.* unaffected from 6.1.165 up to and including 6.1.* unaffected from 6.6.128 up to and including 6.6.* unaffected from 6.12.75 up to and including 6.12.* unaffected from 6.18.14 up to and including 6.18.* unaffected from 6.19.4 up to and including 6.19.* unaffected 7.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-45868 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-45868
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-45868
trivy image --scanners vuln IMAGE | grep CVE-2026-45868
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/191bfd5710d6a7f48ba4315d8d3e908dcc15243c git.kernel.org
- https://git.kernel.org/stable/c/3e3b28bb0b6ddc521a4fdd1c1ba0d35017a0796b git.kernel.org
- https://git.kernel.org/stable/c/456a60d06c09a92680dc35fabca68024badcc28e git.kernel.org
- https://git.kernel.org/stable/c/99cc7352156c65201c675f750e0e77c4c73d93f5 git.kernel.org
- https://git.kernel.org/stable/c/7814b1431848854b56717086e2b61bea3c59753d git.kernel.org
- https://git.kernel.org/stable/c/e2e367e56bacb93ce5ac73f0b3297d5c83d38dd4 git.kernel.org
- https://git.kernel.org/stable/c/5b9e84d27e310f22c4ba45fedbc4f5baf43dd823 git.kernel.org
- https://git.kernel.org/stable/c/353353309b0f7afa407df29e455f9d15b5acc296 git.kernel.org
Source: the record CVE-2026-45868 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse