PT-2023-2676 · Linux+6 · Linux Kernel+6
Yu Hao
·
Published
2023-04-24
·
Updated
2026-03-13
·
CVE-2023-31085
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel version 6.2
Description
An issue in the Linux kernel is related to a divide-by-zero error in the
do div(sz, mtd->erasesize) function, which is used indirectly by ctrl cdev ioctl, when mtd->erasesize is 0. This error is located in the drivers/mtd/ubi/cdev.c file. The issue may allow an attacker to cause a denial of service or potentially have other impacts.Recommendations
For Linux kernel version 6.2, consider applying a patch to fix the divide-by-zero error in the
do div(sz, mtd->erasesize) function. As a temporary workaround, restrict access to the ctrl cdev ioctl function to minimize the risk of exploitation. Avoid using the mtd->erasesize variable with a value of 0 in the affected code until the issue is resolved.Exploit
Fix
Divide By Zero
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu