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. CREATE(Triage):(User=admin) CVE-2023-31085 (https://nvd.nist.gov/vuln/detail/CVE-2023-31085)