Heap-based buffer overflow in NTFS-3G - CVE-2021-46790

 

Heap-based buffer overflow in NTFS-3G - CVE-2021-46790

Published: June 8, 2022


Vulnerability identifier: #VU64092
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-46790
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error in the ntfsck in NTFS-3G when processing specially crafted NTFS filesystem. A local user can mount a malicious NTFS filesystem, trigger a heap-based buffer overflow and execute arbitrary code with elevated privileges.


Affected software

NTFS-3G
Oracle Linux
Fedora
Red Hat CodeReady Linux Builder for IBM z Systems
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise Workstation Extension
Slackware Linux
Ubuntu
openSUSE Leap
openEuler
ntfs-3g-dev (Ubuntu package)
ntfs-3g (Ubuntu package)
ntfs-3g-system-compression
libguestfs-winsupport (Red Hat package)
ntfs-3g
ntfs-3g-help
ntfs-3g-debugsource
ntfs-3g-devel
ntfs-3g-debuginfo
libntfs-3g84-debuginfo
libntfs-3g-devel
ntfsprogs-debuginfo
ntfsprogs
ntfs-3g_ntfsprogs-debugsource
libntfs-3g84
ntfsprogs-extra-debuginfo
ntfsprogs-extra
ntfs-3g_ntfsprogs-debuginfo
libntfs-3g87-debuginfo
libntfs-3g87
ntfs-3g (Debian package)

How to mitigate CVE-2021-46790

Install updates from vendor's website.

NTFS-3G - update to 2021.8.22
ntfs-3g-dev (Ubuntu package) - addressed in versions 1:2013.1.13AR.1-2ubuntu2+esm2, 1:2015.3.14AR.1-1ubuntu0.3+esm2
ntfs-3g (Ubuntu package) - addressed in versions 1:2013.1.13AR.1-2ubuntu2+esm2, 1:2015.3.14AR.1-1ubuntu0.3+esm2, 1:2017.3.23-2ubuntu0.18.04.4, 1:2017.3.23AR.3-3ubuntu1.2, 1:2017.3.23AR.3-3ubuntu5.1, 1:2021.8.22-3ubuntu1.1
ntfs-3g-system-compression - addressed in versions 1.0-9.fc35, 1.0-9.fc36
libguestfs-winsupport (Red Hat package) - update to 9.2-1.el9
ntfs-3g - update to 2022.5.17-1
ntfs-3g-help - update to 2022.5.17-1
ntfs-3g-debugsource - update to 2022.5.17-1
ntfs-3g-devel - update to 2022.5.17-1
ntfs-3g-debuginfo - update to 2022.5.17-1
ntfs-3g - addressed in versions 2022.5.17-1.el7, 2022.5.17-1.fc35, 2022.5.17-1.fc36, 2022.5.17-2.el8, 2022.5.17-2.el9
libntfs-3g84-debuginfo - update to 2022.5.17-5.12.1
libntfs-3g-devel - addressed in versions 2022.5.17-5.12.1, 2022.5.17-150000.3.11.1
ntfsprogs-debuginfo - addressed in versions 2022.5.17-5.12.1, 2022.5.17-150000.3.11.1
ntfsprogs - addressed in versions 2022.5.17-5.12.1, 2022.5.17-150000.3.11.1
ntfs-3g_ntfsprogs-debugsource - addressed in versions 2022.5.17-5.12.1, 2022.5.17-150000.3.11.1
ntfs-3g-debuginfo - addressed in versions 2022.5.17-5.12.1, 2022.5.17-150000.3.11.1
ntfs-3g - addressed in versions 2022.5.17-5.12.1, 2022.5.17-150000.3.11.1
libntfs-3g84 - update to 2022.5.17-5.12.1
ntfsprogs-extra-debuginfo - update to 2022.5.17-150000.3.11.1
ntfsprogs-extra - update to 2022.5.17-150000.3.11.1
ntfs-3g_ntfsprogs-debuginfo - update to 2022.5.17-150000.3.11.1
libntfs-3g87-debuginfo - update to 2022.5.17-150000.3.11.1
libntfs-3g87 - update to 2022.5.17-150000.3.11.1
ntfs-3g - update to 2022.10.3
ntfs-3g (Debian package) - addressed in versions 1:2017.3.23AR.3-3+deb10u2, 1:2017.3.23AR.3-4+deb11u2

External References

Related Security Bulletins