An update for ntfs-3g is now available for openEuler-20.03-LTS-SP1 and openEuler-20.03-LTS-SP2 Security Advisory openeuler-security@openeuler.org openEuler security committee openEuler-SA-2021-1365 Final 1.0 1.0 2021-09-30 Initial 2021-09-30 2021-09-30 openEuler SA Tool V1.0 2021-09-30 ntfs-3g security update An update for ntfs-3g is now available for openEuler-20.03-LTS-SP1 and openEuler-20.03-LTS-SP2. NTFS-3G is a stable, open source, GPL licensed, POSIX, read/write NTFS driver for Linux and many other operating systems. It provides safe handling of the Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008 and Windows 7 NTFS file systems. Security Fix(es): In NTFS-3G versions < 2021.8.22, when a specially crafted NTFS attribute is supplied to the function ntfs_get_attribute_value, a heap buffer overflow can occur allowing for memory disclosure or denial of service. The vulnerability is caused by an out-of-bound buffer access which can be triggered by mounting a crafted ntfs partition. The root cause is a missing consistency check after reading an MFT record : the "bytes_in_use" field should be less than the "bytes_allocated" field. When it is not, the parsing of the records proceeds into the wild.(CVE-2021-33285) A crafted NTFS image can cause an out-of-bounds read in ntfs_ie_lookup in NTFS-3G < 2021.8.22.(CVE-2021-39252) A crafted NTFS image can trigger an out-of-bounds read, caused by an invalid attribute in ntfs_attr_find_in_attrdef, in NTFS-3G < 2021.8.22.(CVE-2021-39255) In NTFS-3G versions < 2021.8.22, when a specially crafted MFT section is supplied in an NTFS image a heap buffer overflow can occur and allow for code execution.(CVE-2021-33289) In NTFS-3G versions < 2021.8.22, when a specially crafted unicode string is supplied in an NTFS image a heap buffer overflow can occur and allow for code execution.(CVE-2021-33286) NTFS-3G versions < 2021.8.22, when a specially crafted NTFS attribute from the MFT is setup in the function ntfs_attr_setup_flag, a heap buffer overflow can occur allowing for code execution and escalation of privileges.(CVE-2021-35269) A crafted NTFS image can cause a heap-based buffer overflow in ntfs_compressed_pwrite in NTFS-3G < 2021.8.22.(CVE-2021-39261) A crafted NTFS image can trigger a heap-based buffer overflow, caused by an unsanitized attribute in ntfs_get_attribute_value, in NTFS-3G < 2021.8.22.(CVE-2021-39263) A crafted NTFS image can cause an out-of-bounds access in ntfs_decompress in NTFS-3G < 2021.8.22.(CVE-2021-39262) A crafted NTFS image can cause an out-of-bounds access in ntfs_inode_sync_standard_information in NTFS-3G < 2021.8.22.(CVE-2021-39260) A crafted NTFS image can trigger an out-of-bounds access, caused by an unsanitized attribute length in ntfs_inode_lookup_by_name, in NTFS-3G < 2021.8.22.(CVE-2021-39259) In NTFS-3G versions < 2021.8.22, when a specially crafted NTFS inode is loaded in the function ntfs_inode_real_open, a heap buffer overflow can occur allowing for code execution and escalation of privileges.(CVE-2021-35268) A crafted NTFS image can cause a heap-based buffer overflow in ntfs_inode_lookup_by_name in NTFS-3G < 2021.8.22.(CVE-2021-39256) A crafted NTFS image can cause an out-of-bounds read in ntfs_runlists_merge_i in NTFS-3G < 2021.8.22.(CVE-2021-39253) In NTFS-3G versions < 2021.8.22, when a specially crafted NTFS inode pathname is supplied in an NTFS image a heap buffer overflow can occur resulting in memory disclosure, denial of service and even code execution.(CVE-2021-35266) A crafted NTFS image can cause out-of-bounds reads in ntfs_attr_find and ntfs_external_attr_find in NTFS-3G < 2021.8.22.(CVE-2021-39258) In NTFS-3G versions < 2021.8.22, when specially crafted NTFS attributes are read in the function ntfs_attr_pread_i, a heap buffer overflow can occur and allow for writing to arbitrary memory or denial of service of the application.(CVE-2021-33287) A crafted NTFS image can cause an integer overflow in memmove, leading to a heap-based buffer overflow in the function ntfs_attr_record_resize, in NTFS-3G < 2021.8.22.(CVE-2021-39254) NTFS-3G versions < 2021.8.22, a stack buffer overflow can occur when correcting differences in the MFT and MFTMirror allowing for code execution or escalation of privileges when setuid-root.(CVE-2021-35267) A crafted NTFS image with an unallocated bitmap can lead to a endless recursive function call chain (starting from ntfs_attr_pwrite), causing stack consumption in NTFS-3G < 2021.8.22.(CVE-2021-39257) A crafted NTFS image can cause a NULL pointer dereference in ntfs_extent_inode_open in NTFS-3G < 2021.8.22.(CVE-2021-39251) An update for ntfs-3g is now available for openEuler-20.03-LTS-SP1 and openEuler-20.03-LTS-SP2. openEuler Security has rated this update as having a security impact of high. A Common Vunlnerability Scoring System(CVSS)base score,which gives a detailed severity rating, is available for each vulnerability from the CVElink(s) in the References section. High ntfs-3g https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-33285 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39252 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39255 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-33289 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-33286 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-35269 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39261 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39263 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39262 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39260 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39259 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-35268 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39256 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39253 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-35266 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39258 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-33287 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39254 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-35267 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39257 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-39251 https://nvd.nist.gov/vuln/detail/CVE-2021-33285 https://nvd.nist.gov/vuln/detail/CVE-2021-39252 https://nvd.nist.gov/vuln/detail/CVE-2021-39255 https://nvd.nist.gov/vuln/detail/CVE-2021-33289 https://nvd.nist.gov/vuln/detail/CVE-2021-33286 https://nvd.nist.gov/vuln/detail/CVE-2021-35269 https://nvd.nist.gov/vuln/detail/CVE-2021-39261 https://nvd.nist.gov/vuln/detail/CVE-2021-39263 https://nvd.nist.gov/vuln/detail/CVE-2021-39262 https://nvd.nist.gov/vuln/detail/CVE-2021-39260 https://nvd.nist.gov/vuln/detail/CVE-2021-39259 https://nvd.nist.gov/vuln/detail/CVE-2021-35268 https://nvd.nist.gov/vuln/detail/CVE-2021-39256 https://nvd.nist.gov/vuln/detail/CVE-2021-39253 https://nvd.nist.gov/vuln/detail/CVE-2021-35266 https://nvd.nist.gov/vuln/detail/CVE-2021-39258 https://nvd.nist.gov/vuln/detail/CVE-2021-33287 https://nvd.nist.gov/vuln/detail/CVE-2021-39254 https://nvd.nist.gov/vuln/detail/CVE-2021-35267 https://nvd.nist.gov/vuln/detail/CVE-2021-39257 https://nvd.nist.gov/vuln/detail/CVE-2021-39251 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 ntfs-3g-debugsource-2021.8.22-1.oe1.aarch64.rpm ntfs-3g-debuginfo-2021.8.22-1.oe1.aarch64.rpm ntfs-3g-devel-2021.8.22-1.oe1.aarch64.rpm ntfs-3g-2021.8.22-1.oe1.aarch64.rpm ntfs-3g-help-2021.8.22-1.oe1.aarch64.rpm ntfs-3g-help-2021.8.22-1.oe1.aarch64.rpm ntfs-3g-debugsource-2021.8.22-1.oe1.aarch64.rpm ntfs-3g-devel-2021.8.22-1.oe1.aarch64.rpm ntfs-3g-2021.8.22-1.oe1.aarch64.rpm ntfs-3g-debuginfo-2021.8.22-1.oe1.aarch64.rpm ntfs-3g-2021.8.22-1.oe1.src.rpm ntfs-3g-2021.8.22-1.oe1.src.rpm ntfs-3g-debugsource-2021.8.22-1.oe1.x86_64.rpm ntfs-3g-help-2021.8.22-1.oe1.x86_64.rpm ntfs-3g-2021.8.22-1.oe1.x86_64.rpm ntfs-3g-debuginfo-2021.8.22-1.oe1.x86_64.rpm ntfs-3g-devel-2021.8.22-1.oe1.x86_64.rpm ntfs-3g-devel-2021.8.22-1.oe1.x86_64.rpm ntfs-3g-2021.8.22-1.oe1.x86_64.rpm ntfs-3g-debuginfo-2021.8.22-1.oe1.x86_64.rpm ntfs-3g-debugsource-2021.8.22-1.oe1.x86_64.rpm ntfs-3g-help-2021.8.22-1.oe1.x86_64.rpm In NTFS-3G versions < 2021.8.22, when a specially crafted NTFS attribute is supplied to the function ntfs_get_attribute_value, a heap buffer overflow can occur allowing for memory disclosure or denial of service. The vulnerability is caused by an out-of-bound buffer access which can be triggered by mounting a crafted ntfs partition. The root cause is a missing consistency check after reading an MFT record : the "bytes_in_use" field should be less than the "bytes_allocated" field. When it is not, the parsing of the records proceeds into the wild. 2021-09-30 CVE-2021-33285 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can cause an out-of-bounds read in ntfs_ie_lookup in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39252 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can trigger an out-of-bounds read, caused by an invalid attribute in ntfs_attr_find_in_attrdef, in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39255 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 In NTFS-3G versions < 2021.8.22, when a specially crafted MFT section is supplied in an NTFS image a heap buffer overflow can occur and allow for code execution. 2021-09-30 CVE-2021-33289 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 In NTFS-3G versions < 2021.8.22, when a specially crafted unicode string is supplied in an NTFS image a heap buffer overflow can occur and allow for code execution. 2021-09-30 CVE-2021-33286 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 NTFS-3G versions < 2021.8.22, when a specially crafted NTFS attribute from the MFT is setup in the function ntfs_attr_setup_flag, a heap buffer overflow can occur allowing for code execution and escalation of privileges. 2021-09-30 CVE-2021-35269 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can cause a heap-based buffer overflow in ntfs_compressed_pwrite in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39261 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can trigger a heap-based buffer overflow, caused by an unsanitized attribute in ntfs_get_attribute_value, in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39263 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can cause an out-of-bounds access in ntfs_decompress in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39262 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can cause an out-of-bounds access in ntfs_inode_sync_standard_information in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39260 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can trigger an out-of-bounds access, caused by an unsanitized attribute length in ntfs_inode_lookup_by_name, in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39259 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 In NTFS-3G versions < 2021.8.22, when a specially crafted NTFS inode is loaded in the function ntfs_inode_real_open, a heap buffer overflow can occur allowing for code execution and escalation of privileges. 2021-09-30 CVE-2021-35268 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can cause a heap-based buffer overflow in ntfs_inode_lookup_by_name in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39256 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can cause an out-of-bounds read in ntfs_runlists_merge_i in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39253 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 In NTFS-3G versions < 2021.8.22, when a specially crafted NTFS inode pathname is supplied in an NTFS image a heap buffer overflow can occur resulting in memory disclosure, denial of service and even code execution. 2021-09-30 CVE-2021-35266 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can cause out-of-bounds reads in ntfs_attr_find and ntfs_external_attr_find in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39258 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 In NTFS-3G versions < 2021.8.22, when specially crafted NTFS attributes are read in the function ntfs_attr_pread_i, a heap buffer overflow can occur and allow for writing to arbitrary memory or denial of service of the application. 2021-09-30 CVE-2021-33287 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can cause an integer overflow in memmove, leading to a heap-based buffer overflow in the function ntfs_attr_record_resize, in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39254 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 NTFS-3G versions < 2021.8.22, a stack buffer overflow can occur when correcting differences in the MFT and MFTMirror allowing for code execution or escalation of privileges when setuid-root. 2021-09-30 CVE-2021-35267 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image with an unallocated bitmap can lead to a endless recursive function call chain (starting from ntfs_attr_pwrite), causing stack consumption in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39257 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 Medium 5.5 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365 A crafted NTFS image can cause a NULL pointer dereference in ntfs_extent_inode_open in NTFS-3G < 2021.8.22. 2021-09-30 CVE-2021-39251 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP2 High 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H ntfs-3g security update 2021-09-30 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1365