Re: [PATCH] pinctrl: at91: Fix potential use-after-free on manual unbind
From: Linus Walleij
Date: Tue Dec 01 2026 - 05:41:26 EST
On Fri, Nov 20, 2026 at 6:35 PM Guangshuo Li
<liguangshuo@xxxxxxxxxxxxxxx> wrote:
> The built-in GPIO and pinctrl drivers share GPIO ranges and global bank
> pointers but provide no teardown for those relationships. Manually
> unbinding a GPIO bank frees its private data while pinctrl still holds
> its embedded range, which is accessed during pinctrl cleanup.
>
> Suppress the bind attributes for these non-removable SoC controllers
> so userspace cannot trigger this unsupported teardown.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: 6732ae5cb47c ("ARM: at91: add pinctrl support")
> Cc: stable@xxxxxxxxxxxxxxx
No way. It's not that serious. I'm dropping this tag.
> Signed-off-by: Guangshuo Li <liguangshuo@xxxxxxxxxxxxxxx>
Patch applied as Nicolas confirms no sane person would
unbind this driver and that is what is being suppressed.
Yours,
Linus Walleij