Bug 2213149 (CVE-2023-31085) - CVE-2023-31085 kernel: divide-by-zero error in ctrl_cdev_ioctl when do_div happens and erasesize is 0
Summary: CVE-2023-31085 kernel: divide-by-zero error in ctrl_cdev_ioctl when do_div ha...
Keywords:
Status: NEW
Alias: CVE-2023-31085
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2213150 2213152 2213153 2213154 2213155
Blocks: 2189448
TreeView+ depends on / blocked
 
Reported: 2023-06-07 08:38 UTC by Alex
Modified: 2023-11-08 18:33 UTC (History)
45 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A divide-by-zero flaw was found in the Linux kernel’s UBI (a software layer above the MTD layer that admits the use of LVM-like logical volumes on top of MTD devices). This flaw allows a local user to crash the system.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Alex 2023-06-07 08:38:14 UTC
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/

Comment 1 Alex 2023-06-07 08:38:40 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2213150]

Comment 5 Justin M. Forbes 2023-11-08 18:33:41 UTC
This was fixed for Fedora with the 6.5.7 stable kernel updates.


Note You need to log in before you can comment on or make changes to this bug.