# CVE-2023-31085: An issue was discovered in drivers/mtd/ubi/cdev.c in the Linux kernel 6.2.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 16% of CVEs (2026-11-30)
- Published: 2023-04-24T00:00:00.000Z
- Modified: 2026-10-14T23:17:18.580Z
- Weaknesses: CWE-369
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linux linux_kernel: 6.2

## References

- <https://lore.kernel.org/all/687864524.118195.1681799447034.JavaMail.zimbra%40nod.at/>
- <https://security.netapp.com/advisory/ntap-20230929-0003/>
- <https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=017c73a34a661a861712f7cc1393a123e5b2208c>
- <https://cert-portal.siemens.com/productcert/html/ssa-794697.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-769027.html>

## Sources

- CVE List: [CVE-2023-31085](https://www.cve.org/CVERecord?id=CVE-2023-31085), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2023-31085](https://nvd.nist.gov/vuln/detail/CVE-2023-31085), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2023-31085 · Whole record: https://cve.day/CVE-2023-31085.json · Rebuilt by cve.day 2026-11-25T22:58:23.703Z
