CVE-2026-139561
pinctrl: pinctrl-generic-mux: Fix provider resource leak on re-parse
Mitigation
- Upgrade Linux to 707855c21198c6a0b73efa053ac4fe733cbe1985 or later.
Who should check
- Anyone running Linux >= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, < 8f8c5606c125cba00e491dad0da071e9b59feba5; >= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, < 707855c21198c6a0b73efa053ac4fe733cbe1985
- Anyone running Linux 7.2
Vulnerability facts
- Affected
- Linux >= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, < 8f8c5606c125cba00e491dad0da071e9b59feba5; >= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, < 707855c21198c6a0b73efa053ac4fe733cbe1985; Linux 7.2
- Fixed in
- Linux 8f8c5606c125cba00e491dad0da071e9b59feba5, Linux 707855c21198c6a0b73efa053ac4fe733cbe1985
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: pinctrl: pinctrl-generic-mux: Fix provider resource leak on re-parse The pinctrl core re-parses a consumer's pinctrl on every probe attempt (pinctrl_bind_pins() runs before the driver's probe(), and again on each deferred-probe retry or re-bind), so .dt_node_to_map() must be side-effect free and safe to call repeatedly. mux_pinmux_dt_node_to_map() instead allocated provider-side resources on every call - the mux_pin_function, the group name table and a mux_state reference, plus a group name and a pinctrl_generic_add_group() registration via pinctrl_generic_to_map(). All of these are allocated with devm_*() against the provider device, so they live for the provider's lifetime and are only released when the provider itself is unbound. The .dt_free_map() path never touches them; it frees the per-consumer pinctrl_map only. Every re-parse therefore adds another set of provider-side allocations that are never reclaimed, so a consumer that repeatedly defers probe or is re-bound leaks memory and mux_state references on the provider without bound. The groups and functions of a board-level mux are static and fully described by the device tree, so build them once at probe time in the new mux_pinctrl_probe_dt(). mux_pinmux_dt_node_to_map() then only looks up the already registered group and builds the per-consumer mux map, which the core frees via .dt_free_map. As the mux has no pin electrical configuration, no config map is emitted.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-139561. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-139561.md Affected: Linux >= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, < 8f8c5606c125cba00e491dad0da071e9b59feba5; >= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, < 707855c21198c6a0b73efa053ac4fe733cbe1985; Linux 7.2 Fixed in: Linux 8f8c5606c125cba00e491dad0da071e9b59feba5, Linux 707855c21198c6a0b73efa053ac4fe733cbe1985 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
FAQ
Is CVE-2026-139561 being exploited?
There is no confirmed exploitation: CVE-2026-139561 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-139561?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-139561?
Linux >= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, < 8f8c5606c125cba00e491dad0da071e9b59feba5; >= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, < 707855c21198c6a0b73efa053ac4fe733cbe1985; Linux 7.2.
Is there a fix for CVE-2026-139561?
Yes. Fixed in Linux 8f8c5606c125cba00e491dad0da071e9b59feba5, Linux 707855c21198c6a0b73efa053ac4fe733cbe1985. Upgrade Linux to 707855c21198c6a0b73efa053ac4fe733cbe1985 or later.
How do I check if I'm affected by CVE-2026-139561?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |