[PATCH] pinctrl: at91: Fix potential use-after-free on manual unbind
Linus Walleij
linusw at kernel.org
Tue Dec 1 02:41:09 PST 2026
On Fri, Nov 20, 2026 at 6:35 PM Guangshuo Li
<liguangshuo at mail.sdu.edu.cn> 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 at vger.kernel.org
No way. It's not that serious. I'm dropping this tag.
> Signed-off-by: Guangshuo Li <liguangshuo at mail.sdu.edu.cn>
Patch applied as Nicolas confirms no sane person would
unbind this driver and that is what is being suppressed.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list