Re: stack out-of-bounds write in mce-inject.c

From: Borislav Petkov
Date: Fri Apr 27 2018 - 11:41:52 EST


On Fri, Apr 27, 2018 at 05:24:24PM +0200, Dmitry Vyukov wrote:
> Hi,
>
> Opening /sys/kernel/debug/mce-inject/flags overwrites stack:
>
> ==================================================================
> BUG: KASAN: stack-out-of-bounds in vsnprintf+0x1b23/0x1b40 lib/vsprintf.c:2365
> Write of size 1 at addr ffff8800627b7abb by task egrep/4309

How do you trigger this exactly?

You grep it for something apparently...

Thx.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.