CVE-2026-137327: GNU mtools through 4.0.50 Divide-by-Zero via Sectors-per-Cluster in calc_num_clus()
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 calcnumclus() on x86, causing denial of service.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users or systems that run mtools commands against attacker-supplied or otherwise untrusted FAT images are exposed. The reported affected commands are mdir, minfo, and mtype.
What does an attacker need to exploit it?
The attacker needs to provide a crafted FAT image with its sectors-per-cluster byte set to zero and have a user or process open it with an affected mtools command. No privileges are required, but user interaction is required according to the supplied severity vector.
What is the impact of successful exploitation?
Opening the crafted image can trigger a SIGFPE in calc_num_clus() on x86, crashing the mtools command. The supplied information describes a denial-of-service impact only.
How can I tell whether an image is likely to trigger the issue?
The triggering condition is a FAT image whose sectors-per-cluster byte is zero. Affected processing is reported for mdir, minfo, or mtype when they open such an image.