An issue was discovered in drivers/mtd/ubi/cdev.c in the Linux kernel 6.2. There is a divide-by-zero error in do_div(sz,mtd->erasesize), used indirectly by ctrl_cdev_ioctl, when mtd->erasesize is 0.
https://security.netapp.com/advisory/ntap-20230929-0003/
https://lore.kernel.org/all/687864524.118195.1681799447034.JavaMail.zimbra%40nod.at/