{"id":"CVE-2023-31085","aliases":["CVE-2023-31085"],"related":[],"kind":"vulnerability","state":"published","title":"An issue was discovered in drivers/mtd/ubi/cdev.c in the Linux kernel 6.2.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2023-04-24T00:00:00.000Z","modified":"2026-10-14T23:17:18.580Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-369"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","version":"6.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:6.2:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lore.kernel.org/all/687864524.118195.1681799447034.JavaMail.zimbra%40nod.at/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20230929-0003/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=017c73a34a661a861712f7cc1393a123e5b2208c","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-794697.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-769027.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-31085","url":"https://www.cve.org/CVERecord?id=CVE-2023-31085","licence":"CVE Terms of Use","modified":"2026-10-14T23:07:57.916Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-31085","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31085","licence":"Public domain","modified":"2026-10-14T23:17:18.580Z"}],"updatedAt":"2026-11-25T22:58:23.703Z","epss":{"score":0.00306,"percentile":0.15884,"date":"2026-11-30T12:00:22.000Z"}}