Bug 2001608 (CVE-2021-33285) - CVE-2021-33285 ntfs-3g: Out-of-bounds heap buffer access in ntfs_get_attribute_value() due to incorrect check of bytes_in_use value in MFT records
Summary: CVE-2021-33285 ntfs-3g: Out-of-bounds heap buffer access in ntfs_get_attribut...
Alias: CVE-2021-33285
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 2002985 2004490 2004491 2004493 2004494 2004497 2004498 2006383 2006384
Blocks: 2001669
TreeView+ depends on / blocked
Reported: 2021-09-06 14:32 UTC by Pedro Sampaio
Modified: 2022-05-10 13:16 UTC (History)
4 users (show)

Fixed In Version: ntfs3g-2021.8.22
Doc Type: If docs needed, set a value
Doc Text:
The ntfs3g package is susceptible to a heap overflow on crafted input. When processing NTFS attributes, proper bounds checking was not enforced leading to this software flaw. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Clone Of:
Last Closed: 2021-09-30 18:21:25 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:3703 0 None None None 2021-09-30 16:54:12 UTC
Red Hat Product Errata RHSA-2021:3704 0 None None None 2021-09-30 19:01:56 UTC
Red Hat Product Errata RHSA-2022:1759 0 None None None 2022-05-10 13:16:50 UTC

Description Pedro Sampaio 2021-09-06 14:32:48 UTC
From https://www.openwall.com/lists/oss-security/2021/08/30/1:

Security vulnerabilities were identified in the open source NTFS-3G and NTFSPROGS software. These vulnerabilities were confirmed and resolved. To our knowledge, these vulnerabilities have not been exploited.

These vulnerabilities may allow an attacker using a maliciously crafted NTFS-formatted image file or external storage to potentially execute arbitrary privileged code, if the attacker has either local access and the ntfs-3g binary is setuid root, or if the attacker has physical access to an external port to a computer which is configured to run the ntfs-3g binary or one of the ntfsprogs tools when the external storage is plugged into the computer. These vulnerabilities result from incorrect validation of some of the NTFS metadata that could potentially cause buffer overflows, which could be exploited by an attacker. Common ways for attackers to gain physical access to a machine is through social engineering or an evil maid attack on an unattended computer.

We recommend installing and applying the update with the security fixes, and advise to follow security guidance and frameworks such as NIST for assessing and improving an organization’s abilities to prevent, detect, and respond to security threats and cyber attacks.

AFFECTED PRODUCTS: All previous versions of open source NTFS-3G and NTFSPROGS.


SOLUTION: Upgrade to 2021.8.22

PROJECT URL: https://github.com/tuxera/ntfs-3g


ISSUE DATE: 2021-08-30

SEVERITY: Moderate

CVEs: CVE-2021-33285, CVE-2021-35269, CVE-2021-35268, CVE-2021-33289, CVE-2021-33286, CVE-2021-35266, CVE-2021-33287, CVE-2021-35267, CVE-2021-39251, CVE-2021-39252, CVE-2021-39253, CVE-2021-39254, CVE-2021-39255, CVE-2021-39256, CVE-2021-39257, CVE-2021-39258, CVE-2021-39259, CVE-2021-39260, CVE-2021-39261, CVE-2021-39262, CVE-2021-39263

CVSS SCORE: 3.9-6.7

ACKNOWLEDGMENT: Jeremy Galindo, Akshay Ajayan, Kyle Zeng and Fish Wang for reporting these vulnerabilities.

Comment 1 Richard W.M. Jones 2021-09-09 19:42:03 UTC
Will bugs be created against libguestfs-winsupport in RHEL 7/8/AV/9
for this and the many other ntfs-3g CVEs?

Comment 2 devthomp 2021-09-13 19:48:42 UTC
I'm still doing analysis but given the count and severity for some of these (6.7 being the highest) It is VERY likely that we will have bugs created against libguestfs-winsupport.

Comment 3 Richard W.M. Jones 2021-09-13 19:53:00 UTC
Note I already rebased this package in RHEL 9 GA:

Comment 6 devthomp 2021-09-15 13:05:11 UTC
Created ntfs-3g tracking bugs for this issue:

Affects: epel-all [bug 2004498]
Affects: fedora-all [bug 2004497]

Comment 7 devthomp 2021-09-15 13:32:39 UTC
link to commits:

Comment 9 errata-xmlrpc 2021-09-30 16:54:10 UTC
This issue has been addressed in the following products:

  Advanced Virtualization for RHEL 8.4.0.Z

Via RHSA-2021:3703 https://access.redhat.com/errata/RHSA-2021:3703

Comment 10 Product Security DevOps Team 2021-09-30 18:21:25 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):


Comment 11 errata-xmlrpc 2021-09-30 19:01:54 UTC
This issue has been addressed in the following products:

  Advanced Virtualization for RHEL 8.2.1

Via RHSA-2021:3704 https://access.redhat.com/errata/RHSA-2021:3704

Comment 12 errata-xmlrpc 2022-05-10 13:16:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:1759 https://access.redhat.com/errata/RHSA-2022:1759

Note You need to log in before you can comment on or make changes to this bug.