Findings

CVE-2023-31085

An issue was discovered in drivers/mtd/ubi/cdev.c in the Linux kernel 6.2.

Published Apr 24, 2023 · updated Oct 14, 2026 · linux linux kernel

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.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Apr 24, 2023 · NIST NVD

    Detected

    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.

  2. Oct 14, 2026 · NIST NVD

    Updated

    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.

Affected

  • cpe linux/linux kernel6.2

Sources

  • CVE.orgVulnerability recordCVE-2023-31085

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2023-31085

    30-day exploitation probability 0.4%

    first.org
  • NIST NVDVulnerability recordCVE-2023-31085

    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.

    nvd.nist.gov

References