CVE-2023-31085Published Apr 24, 2023 · Apr 24Updated Oct 28
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 in…
Medium5.5
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Unspecified product |
| No fix yet |
Original description
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.
From the CVE record · mitre