p PatchFirst

CVE-2026-137327

CVE-2026-137327 · GNU mtools through 4.0.50 Divide-by-Zero via Sectors-per-Cluster in calc_num_clus()

CVSS 4.8 · Medium · EPSS 0.4% · Public exploit

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • mtoolsNo fix published
  • mtools Debian 12No fix published
  • mtools Debian 13No fix published
  • mtools Debian 14No fix published
  • and 7 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="mtools"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

GNU mtools through 4.0.50 contains a divide-by-zero vulnerability that allows attackers to crash mtools commands by supplying a FAT image with a zero sectors-per-cluster byte. Attackers can craft a FAT image that, when opened with mdir, minfo or mtype, triggers a SIGFPE in calc_num_clus() on x86, causing denial of service.

Published
Updated

Stack: system

Affected products and versions

  • mtools

    Versions
    • ≥ 0, ≤ 4.0.50: Affected (custom)

    No fix published

  • mtools Debian 12

    Versions
    • 4.0.33-1+really4.0.32-1
    • 4.0.33-1+really4.0.32-1+hurd.1
    • 4.0.43-1
    • 4.0.47-1
    • 4.0.48-1
    • 4.0.48-2
    All versions (8)
    • 4.0.49-1
    • 4.0.50-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mtools Debian 13

    Versions
    • 4.0.48-1
    • 4.0.48-2
    • 4.0.49-1
    • 4.0.50-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mtools Debian 14

    Versions
    • 4.0.48-1
    • 4.0.48-2
    • 4.0.49-1
    • 4.0.50-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mtools Ubuntu 16.04 LTS

    Versions
    • 4.0.18-2
    • 4.0.18-2ubuntu0.16.04
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mtools Ubuntu 18.04 LTS

    Versions
    • 4.0.18-2ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mtools Ubuntu 20.04 LTS

    Versions
    • 4.0.23-1
    • 4.0.23-2
    • 4.0.23-3
    • 4.0.24-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mtools Ubuntu 22.04 LTS

    Versions
    • 4.0.33-1+really4.0.32-1
    • 4.0.33-1+really4.0.32-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mtools Ubuntu 24.04 LTS

    Versions
    • 4.0.43-1
    • 4.0.43-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mtools Ubuntu 26.10

    Versions
    • 4.0.49-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mtools Ubuntu 26.04 LTS

    Versions
    • 4.0.48-1
    • 4.0.49-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →