A flaw in the Linux Kernel found in drivers/mtd/ubi/cdev.c. There is a divide-by-zero error in do_div(sz,mtd->erasesize), used indirectly by ctrl_cdev_ioctl, when mtd->erasesize is 0. Reference: https://lore.kernel.org/all/CA+UBctD_w=75wChmePZHp7KsBSNPWYGDBtzHPRPPtaFoqhGvXA@mail.gmail.com/
Created kernel tracking bugs for this issue: Affects: fedora-all [bug 2213150]
This was fixed for Fedora with the 6.5.7 stable kernel updates.