In the Linux kernel, the following vulnerability has been resolved:
video: fbdev: cirrusfb: check pixclock to avoid divide by zero
Do a sanity check on pixclock value to avoid divide by zero.
If the pixclock value is zero, the cirrusfb driver will round up pixclock to get the derived frequency as close to maxclock as possible.
Syzkaller reported a divide error in cirrusfbcheckpixclock.
divide error: 0000 [#1] SMP KASAN PTI CPU: 0 PID: 14938 Comm: cirrusfbtest Not tainted 5.15.0-rc6 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.0-2 RIP: 0010:cirrusfbcheck_var+0x6f1/0x1260
Call Trace: fbsetvar+0x398/0xf90 dofbioctl+0x4b8/0x6f0 fbioctl+0xeb/0x130 _x64sysioctl+0x19d/0x220 dosyscall64+0x3a/0x80 entrySYSCALL64afterhwframe+0x44/0xae