PT-2026-163602
CVE-2026-139561
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Found an issue in the description? Have something to add? Feel free to write us 👾