Re: [PATCH 1/1] vt_ioctl: prevent VT_RESIZEX font height change from causing potential out-of-bounds access

From: George Kennedy
Date: Wed Jul 29 2020 - 14:50:36 EST


Hi Greg,

I will re-work this patch based on comments from Dan.

Thank you,
George

On 7/29/2020 8:53 AM, Greg KH wrote:
On Wed, Jul 29, 2020 at 08:39:41AM -0400, George Kennedy wrote:
Add a VT_RESIZEX check to ensure that changing the font height will not
cause a potential out-of-bounds access. The candidate font height contained
in "v_clin", though below the max, could still result in accesses beyond
the allocated font data size.

Signed-off-by: George Kennedy <george.kennedy@xxxxxxxxxx>
Reported-by: syzbot+38a3699c7eaf165b97a6@xxxxxxxxxxxxxxxxxxxxxxxxx
Did syzbot also test this that it fixes the reported issue?

What commit does this fix? Should it go back farther to stable releases
too?

thanks,

greg k-h