Fallos del tipo CWE-369

208 resultados

Divisão por zero

Ocorre quando o código tenta dividir um número por zero, causando uma exceção ou comportamento indefinido que pode derrubar a aplicação ou ser explorado para negação de serviço. É uma validação de entrada ausente: o desenvolvedor não verifica se o divisor é zero antes da operação.

Ejemplo

Um endpoint que calcula a média de valores recebe um parâmetro 'quantidade' do usuário e faz resultado / quantidade sem validar se quantidade é zero. Um atacante envia quantidade=0 e a aplicação falha.

Cómo mitigar

Sempre validar que divisores não são zero antes da operação aritmética. Use condicionais simples (if divisor != 0) ou exceções bem tratadas para rejeitar entradas inválidas antes de chegar ao cálculo.

CVE-2025-71006MEDIUMA floating point exception (FPE) in the oneflow.reshape component of OneFlow v0.9.0 allows attackers to cause a Denial of Service (DoS) via EPSS 0.3%CVE-2026-93589MEDIUMImageMagick before 7.1.2-31 Division by Zero in FLIF encoderEPSS 0.3%CVE-2022-3061Found Linux Kernel flaw in the i740 driver. The Userspace program could pass any values to the driver through ioctl() interface. The driver EPSS 0.3%CVE-2023-2662LOWDivide-by-zero in Xpdf 4.04 due to bad color space objectEPSS 0.3%CVE-2026-24826CRITICALOut-of-bounds write in turso3dEPSS 0.3%CVE-2022-49294MEDIUMdrm/amd/display: Check if modulo is 0 before dividing.EPSS 0.3%CVE-2024-50233MEDIUMstaging: iio: frequency: ad9832: fix division by zero in ad9832_calc_freqreg()EPSS 0.3%CVE-2022-41287LOWA vulnerability has been identified in JT2Go (All versions < V14.1.0.6), Teamcenter Visualization V13.2 (All versions < V13.2.0.12), TeamcenEPSS 0.3%CVE-2021-47641MEDIUMvideo: fbdev: cirrusfb: check pixclock to avoid divide by zeroEPSS 0.3%CVE-2024-57922MEDIUMdrm/amd/display: Add check for granularity in dml ceil/floor helpersEPSS 0.3%CVE-2024-50287MEDIUMmedia: v4l2-tpg: prevent the risk of a division by zeroEPSS 0.3%CVE-2025-9649MEDIUMappneta tcpreplay send_packets.c calc_sleep_time divide by zeroEPSS 0.3%CVE-2024-56369MEDIUMdrm/modes: Avoid divide by zero harder in drm_mode_vrefresh()EPSS 0.2%CVE-2024-50232MEDIUMiio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()EPSS 0.2%CVE-2026-38345MEDIUMA Division-by-Zero vulnerability in the ff_sws_init_single_context function (/libswscale/utils.c) of FFmpeg N-122528-gdd2976b9e1 allows attaEPSS 0.2%CVE-2021-4216A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upEPSS 0.2%CVE-2025-71005MEDIUMA floating point exception (FPE) in the oneflow.view component of OneFlow v0.9.0 allows attackers to cause a Denial of Service (DoS) via a cEPSS 0.2%CVE-2024-26945HIGHcrypto: iaa - Fix nr_cpus < nr_iaa caseEPSS 0.2%CVE-2024-56567MEDIUMad7780: fix division by zero in ad7780_write_raw()EPSS 0.2%CVE-2024-50205MEDIUMALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size()EPSS 0.2%