# CVE-2026-139561: pinctrl: pinctrl-generic-mux: Fix provider resource leak on re-parse

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:35:53.917Z
- **Modified:** 2026-11-30T14:19:36.830Z

## Who should check

- Anyone running Linux \>= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, \< 8f8c5606c125cba00e491dad0da071e9b59feba5; \>= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, \< 707855c21198c6a0b73efa053ac4fe733cbe1985
- Anyone running Linux 7.2

## 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

- Linux: \>= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, \< 8f8c5606c125cba00e491dad0da071e9b59feba5; \>= 34acc5a8adfb76f2de63c8b8317397fb72b0aec8, \< 707855c21198c6a0b73efa053ac4fe733cbe1985 (cvelist)
- Linux: 7.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 707855c21198c6a0b73efa053ac4fe733cbe1985 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/8f8c5606c125cba00e491dad0da071e9b59feba5>
- other: <https://git.kernel.org/stable/c/707855c21198c6a0b73efa053ac4fe733cbe1985>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139561>

HTML: <https://flawdb.com/CVE-2026-139561> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139561>
