CVE-2015-8872
published 2016-06-03CVE-2015-8872: The set_fat function in fat.c in dosfstools before 4.0 might allow attackers to corrupt a FAT12 filesystem or cause a denial of service (invalid memory read…
PriorityP418medium6.2CVSS 3.0
AVLACLPRNUINSUCNINAH
EPSS
0.42%
34.8th percentile
The set_fat function in fat.c in dosfstools before 4.0 might allow attackers to corrupt a FAT12 filesystem or cause a denial of service (invalid memory read and crash) by writing an odd number of clusters to the third to last entry on a FAT12 filesystem, which triggers an "off-by-two error."
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | dosfstools | < dosfstools 4.0-1 (bookworm) | dosfstools 4.0-1 (bookworm) |
| dosfstools_project | dosfstools | <= 3.0.28 | — |
| dosfstools_project | dosfstools | >= 0 < 4.0-1 | 4.0-1 |
| dosfstools_project | dosfstools | >= 0 < 4.0-1 | 4.0-1 |
| dosfstools_project | dosfstools | >= 0 < 4.0-1 | 4.0-1 |
| dosfstools_project | dosfstools | >= 0 < 4.0-1 | 4.0-1 |
| opensuse | leap | — | — |
| opensuse | opensuse | — | — |
CVSS provenance
nvdv3.06.2MEDIUMCVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.02.1LOWAV:L/AC:L/Au:N/C:N/I:N/A:P
osv6.2MEDIUM
vendor_debian6.2MEDIUM
vendor_redhat6.2MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
dosfstools vulnerabilities
vendor_ubuntu·2016-05-31
CVE-2015-8872 dosfstools vulnerabilities
Title: dosfstools vulnerabilities
Summary: dosfstools could be made to crash or run programs if it processed a
specially crafted filesystem.
Hanno Böck discovered that dosfstools incorrectly handled certain malformed
filesystems. A local attacker could use this issue to cause dosfstools to
crash, resulting in a denial of service, or possibly execute arbitrary
code.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
dosfstools: Off-by-2 error leading to corruption in FAT12
vendor_redhat·2016-05-14·CVSS 6.2
CVE-2015-8872 [MEDIUM] CWE-193 dosfstools: Off-by-2 error leading to corruption in FAT12
dosfstools: Off-by-2 error leading to corruption in FAT12
The set_fat function in fat.c in dosfstools before 4.0 might allow attackers to corrupt a FAT12 filesystem or cause a denial of service (invalid memory read and crash) by writing an odd number of clusters to the third to last entry on a FAT12 filesystem, which triggers an "off-by-two error."
Package: dosfstools (Red Hat Enterprise Linux 5) - Will not fix
Package: dosfstools (Red Hat Enterprise Linux 6) - Will not fix
Package: dosfstools (Red Hat Enterprise Linux 7) - Will not fix
Debian
CVE-2015-8872: dosfstools - The set_fat function in fat.c in dosfstools before 4.0 might allow attackers to ...
vendor_debian·2015·CVSS 6.2
CVE-2015-8872 [MEDIUM] CVE-2015-8872: dosfstools - The set_fat function in fat.c in dosfstools before 4.0 might allow attackers to ...
The set_fat function in fat.c in dosfstools before 4.0 might allow attackers to corrupt a FAT12 filesystem or cause a denial of service (invalid memory read and crash) by writing an odd number of clusters to the third to last entry on a FAT12 filesystem, which triggers an "off-by-two error."
Scope: local
bookworm: resolved (fixed in 4.0-1)
bullseye: resolved (fixed in 4.0-1)
forky: resolved (fixed in 4.0-1)
sid: resolved (fixed in 4.0-1)
trixie: resolved (fixed in 4.0-1)
GHSA
GHSA-2vww-49j7-chwm: The set_fat function in fat
ghsa_unreviewed·2022-05-13
CVE-2015-8872 [MEDIUM] GHSA-2vww-49j7-chwm: The set_fat function in fat
The set_fat function in fat.c in dosfstools before 4.0 might allow attackers to corrupt a FAT12 filesystem or cause a denial of service (invalid memory read and crash) by writing an odd number of clusters to the third to last entry on a FAT12 filesystem, which triggers an "off-by-two error."
OSV
CVE-2015-8872: The set_fat function in fat
osv·2016-06-03·CVSS 6.2
CVE-2015-8872 [MEDIUM] CVE-2015-8872: The set_fat function in fat
The set_fat function in fat.c in dosfstools before 4.0 might allow attackers to corrupt a FAT12 filesystem or cause a denial of service (invalid memory read and crash) by writing an odd number of clusters to the third to last entry on a FAT12 filesystem, which triggers an "off-by-two error."
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2015-8872 CVE-2016-4804 dosfstools: various flaws [fedora-all]
bugzilla·2016-05-19·CVSS 6.2
CVE-2015-8872 [MEDIUM] CVE-2015-8872 CVE-2016-4804 dosfstools: various flaws [fedora-all]
CVE-2015-8872 CVE-2016-4804 dosfstools: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora. Whi
Bugzilla
CVE-2015-8872 dosfstools: Off-by-2 error leading to corruption in FAT12
bugzilla·2016-05-17·CVSS 6.2
CVE-2015-8872 [MEDIUM] CVE-2015-8872 dosfstools: Off-by-2 error leading to corruption in FAT12
CVE-2015-8872 dosfstools: Off-by-2 error leading to corruption in FAT12
A vulnerability was found in dosfstools. In FAT12 two 12 bit entries are combined to a 24 bit value (three bytes). Therefore, when an even numbered FAT entry is set in FAT12, it must be be combined with the following entry. To prevent accessing beyond the end of the FAT array, it must be checked that the cluster is not the last one.
Previously, the check tested that the requested cluster was equal to fs->clusters - 1. However, fs->clusters is the number of data clusters not including the two reserved FAT entries at the start so the test triggered two clusters early.
If the third to last entry was written on a FAT12 filesystem with an odd number of clusters, the second to last entry would be corrupted. This corruptio
http://lists.opensuse.org/opensuse-updates/2016-06/msg00001.htmlhttp://lists.opensuse.org/opensuse-updates/2016-09/msg00014.htmlhttp://www.securityfocus.com/bid/90311http://www.ubuntu.com/usn/USN-2986-1https://blog.fuzzing-project.org/44-dosfstools-fsck.vfat-Several-invalid-memory-accesses.htmlhttps://github.com/dosfstools/dosfstools/commit/07908124838afcc99c577d1d3e84cef2dbd39cb7https://github.com/dosfstools/dosfstools/issues/12https://github.com/dosfstools/dosfstools/releases/tag/v4.0https://lists.debian.org/debian-lts-announce/2020/05/msg00028.htmlhttp://lists.opensuse.org/opensuse-updates/2016-06/msg00001.htmlhttp://lists.opensuse.org/opensuse-updates/2016-09/msg00014.htmlhttp://www.securityfocus.com/bid/90311http://www.ubuntu.com/usn/USN-2986-1https://blog.fuzzing-project.org/44-dosfstools-fsck.vfat-Several-invalid-memory-accesses.htmlhttps://github.com/dosfstools/dosfstools/commit/07908124838afcc99c577d1d3e84cef2dbd39cb7https://github.com/dosfstools/dosfstools/issues/12https://github.com/dosfstools/dosfstools/releases/tag/v4.0https://lists.debian.org/debian-lts-announce/2020/05/msg00028.html
2016-06-03
Published