{"id":"CVE-2023-31085","details":"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-\u003eerasesize), used indirectly by ctrl_cdev_ioctl, when mtd-\u003eerasesize is 0.","modified":"2026-04-24T06:42:50.482516313Z","published":"2023-04-24T06:15:08.093Z","related":["SUSE-SU-2023:4343-1","SUSE-SU-2023:4345-1","SUSE-SU-2023:4346-1","SUSE-SU-2023:4347-1","SUSE-SU-2023:4348-1","SUSE-SU-2023:4349-1","SUSE-SU-2023:4351-1","SUSE-SU-2023:4359-1","SUSE-SU-2023:4375-1","SUSE-SU-2023:4377-1","SUSE-SU-2023:4378-1","SUSE-SU-2023:4414-1","SUSE-SU-2024:0112-1","USN-6537-1","USN-6572-1"],"references":[{"type":"WEB","url":"https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=017c73a34a661a861712f7cc1393a123e5b2208c"},{"type":"WEB","url":"https://lore.kernel.org/all/687864524.118195.1681799447034.JavaMail.zimbra%40nod.at/"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230929-0003/"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-31085.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"6.2"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}