PT-2023-2676 · Linux+6 · Linux Kernel+6
Yu Hao
·
Publicado
2023-04-24
·
Atualizado
2026-03-13
·
CVE-2023-31085
CVSS v3.1
5.5
Média
| Vetor | 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
Correção
Divide By Zero
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu