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

Published Nov 30, 2026
·
Updated

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 (pinctrlbindpins() runs before the driver's probe(), and again on each deferred-probe retry or re-bind), so .dtnodetomap() must be side-effect free and safe to call repeatedly.

muxpinmuxdtnodetomap() instead allocated provider-side resources on every call - the muxpinfunction, the group name table and a muxstate reference, plus a group name and a pinctrlgenericaddgroup() registration via pinctrlgenerictomap(). 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 .dtfreemap() path never touches them; it frees the per-consumer pinctrlmap 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 muxstate 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 muxpinctrlprobedt(). muxpinmuxdtnodetomap() then only looks up the already registered group and builds the per-consumer mux map, which the core frees via .dtfreemap. As the mux has no pin electrical configuration, no config map is emitted.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description
Data Sourced
via NVD·02:19 PM
Description

Frequently Asked Questions

1

Which systems are exposed to the leak?

Systems using the generic mux pinctrl path are affected when a consumer's pinctrl configuration is parsed more than once. This can occur during deferred-probe retries or when a consumer driver is re-bound.

2

What resources accumulate, and when are they released?

Each re-parse can add provider-side mux function, group-name, mux_state, and group-registration resources. Because these are allocated against the provider device, they remain until the provider is unbound.

3

Does freeing the consumer's pinctrl map reclaim the leaked resources?

No. The .dt_free_map() path frees only the per-consumer pinctrl_map and does not release the provider-side allocations created during parsing.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203