Re: [BUG] video: fbdev: arkfb: Found a divide-by-zero bug which may cause DoS

2022-08-03 Thread Zheyu Ma
Hi, On Mon, Aug 1, 2022 at 12:35 PM Helge Deller wrote: > > * Zheyu Ma : > > I found a bug in the arkfb driver in the latest kernel, which may cause DoS. > > > > The reason for this bug is that the user controls some input to ioctl, > > making 'mode' 0x7 on line 704, which causes hdiv = 1, hmul

[BUG] video: fbdev: arkfb: Found a divide-by-zero bug which may cause DoS

2022-07-27 Thread Zheyu Ma
Hello, I found a bug in the arkfb driver in the latest kernel, which may cause DoS. The reason for this bug is that the user controls some input to ioctl, making 'mode' 0x7 on line 704, which causes hdiv = 1, hmul = 2, and if the pixclock is controlled to be 1, it will cause a division error in