[lvc-project] [PATCH] pinctrl: nuvoton: wpcm450: fix out of bounds write
Linus Walleij
linus.walleij at linaro.org
Tue Sep 12 10:04:07 MSK 2023
On Fri, Aug 25, 2023 at 12:15 PM Mikhail Kobuk <m.kobuk at ispras.ru> wrote:
> Write into 'pctrl->gpio_bank' happens before the check for GPIO index
> validity, so out of bounds write may happen.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: a1d1e0e3d80a ("pinctrl: nuvoton: Add driver for WPCM450")
> Signed-off-by: Mikhail Kobuk <m.kobuk at ispras.ru>
> Reviewed-by: Alexey Khoroshilov <khoroshilov at ispras.ru>
Patch applied for fixes.
Yours,
Linus Walleij
More information about the lvc-project
mailing list