cve.bz

CVE-2022-40284 Classic Buffer Overflow

7.8 highEPSS 0.4%

High (7.8). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
A buffer overflow was discovered in NTFS-3G before 2022.10.3. Crafted metadata in an NTFS image can cause code execution. A local attacker can exploit this if the ntfs-3g binary is setuid root. A physically proximate attacker can exploit this if NTFS-3G software is configured to execute upon attachment of an external storage device.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-05-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-40284 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-40284?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-40284?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-40284 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
tuxera:ntfs-3gbefore 2022.10.3
debian:debian_linux10.0
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10ntfs-3g1:2017.3.23AR.3-3+deb10u3DLA-3201-1
Debian11ntfs-3g1:2017.3.23AR.3-4+deb11u3DSA-5270-1
Debian12, 13, 14ntfs-3g1:2022.10.3-1DEBIAN-CVE-2022-40284
Ubuntu18.04:LTSntfs-3g1:2017.3.23-2ubuntu0.18.04.5UBUNTU-CVE-2022-40284 USN-5711-1
Ubuntu20.04:LTSntfs-3g1:2017.3.23AR.3-3ubuntu1.3UBUNTU-CVE-2022-40284 USN-5711-1
Ubuntu22.04:LTSntfs-3g1:2021.8.22-3ubuntu1.2UBUNTU-CVE-2022-40284 USN-5711-1
UbuntuPro:14.04:LTSntfs-3g1:2013.1.13AR.1-2ubuntu2+esm4UBUNTU-CVE-2022-40284 USN-5711-2
UbuntuPro:16.04:LTSntfs-3g1:2015.3.14AR.1-1ubuntu0.3+esm4UBUNTU-CVE-2022-40284 USN-5711-2
Red Hatadvanced_virtualization:8.4::el8SLOF0:20200717-1.gite18ddad8.module+el8.4.0+8855+a9e237a9RHSA-2023:5405
Red Hatadvanced_virtualization:8.4::el8hivex, perl-hivex, ruby-hivex and 10 more0:1.3.18-21.module+el8.4.0+11609+2eba841aRHSA-2023:5405
Red Hatadvanced_virtualization:8.4::el8libguestfs-winsupport0:8.4-1.module+el8.4.0+19819+df446cdfRHSA-2023:5405
Red Hatadvanced_virtualization:8.4::el8libiscsi, libiscsi-devel, libiscsi-utils and 3 more0:1.18.0-8.module+el8.4.0+8855+a9e237a9RHSA-2023:5405
Red Hatadvanced_virtualization:8.4::el8libnbd, nbdfuse, libnbd-devel and 9 more0:1.6.0-5.module+el8.4.0+14155+dec4a5c7RHSA-2023:5405
Red Hatadvanced_virtualization:8.4::el8libtpms, libtpms-devel, libtpms-debuginfo and 1 more0:0.7.4-4.20201106git2452a24dab.module+el8.4.0+10596+32ba7df3RHSA-2023:5405
Red Hatadvanced_virtualization:8.4::el8libvirt, libvirt-nss, libvirt-docs and 51 more0:7.0.0-14.8.module+el8.4.0+15255+f7eff4ddRHSA-2023:5405
Red Hatadvanced_virtualization:8.4::el8libvirt-dbus, libvirt-dbus-debuginfo, libvirt-dbus-debugsource0:1.3.0-2.module+el8.4.0+8855+a9e237a9RHSA-2023:5405
Red Hatadvanced_virtualization:8.4::el8nbdkit, nbdkit-devel, nbdkit-server and 34 more0:1.24.0-1.module+el8.4.0+9341+96cf2672RHSA-2023:5405
Red Hatadvanced_virtualization:8.4::el8netcf, netcf-libs, netcf-devel and 3 more0:0.2.8-12.module+el8.4.0+8855+a9e237a9RHSA-2023:5405
Red Hatadvanced_virtualization:8.4::el8perl-Sys-Virt, libvirt-python, python3-libvirt and 4 more0:7.0.0-1.module+el8.4.0+9469+2eaf72bcRHSA-2023:5405
Red Hatadvanced_virtualization:8.4::el8python-pyvmomi, python3-pyvmomi0:6.7.1-7.module+el8.4.0+8855+a9e237a9RHSA-2023:5405
110 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Software Development Kit 12 SP5, Linux Enterprise Workstation Extension 12 SP5ntfs-3g_ntfsprogs2022.5.17-5.17.1SUSE-SU-2022:3865-1
SUSELinux Enterprise Workstation Extension 15 SP3, Linux Enterprise Workstation Extension 15 SP4ntfs-3g_ntfsprogs2022.5.17-150000.3.16.1SUSE-SU-2022:3866-1
openSUSELeap 15.3, Leap 15.4ntfs-3g_ntfsprogs2022.5.17-150000.3.16.1SUSE-SU-2022:3866-1
openSUSETumbleweedntfs-3g_ntfsprogs2022.10.3-1.1openSUSE-SU-2024:12473-1
AlmaLinux8SLOF20210217-1.module_el8.6.0+2880+7d9e3703ALSA-2023:5264
AlmaLinux8hivex, perl-hivex, ruby-hivex and 4 more1.3.18-23.module_el8.6.0+2880+7d9e3703ALSA-2023:5264
AlmaLinux8hivex, perl-hivex, ruby-hivex and 4 more1.3.18-23.module_el8.6.0+3161+a07c0ea5ALSA-2023:5264
AlmaLinux8libguestfs-winsupport8.8-2.module_el8.8.0+3612+f18d2b89ALSA-2023:5264
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.6.0+2880+7d9e3703ALSA-2023:5264
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.6.0+3161+a07c0ea5ALSA-2023:5264
AlmaLinux8libnbd, nbdfuse, libnbd-devel and 3 more1.6.0-5.module_el8.6.0+3161+a07c0ea5ALSA-2023:5264
AlmaLinux8libnbd, nbdfuse, libnbd-devel and 4 more1.6.0-5.module_el8.6.0+2880+7d9e3703ALSA-2023:5264
AlmaLinux8libtpms, libtpms-devel0.9.1-2.20211126git1ff6fe1f43.module_el8.8.0+3553+bd08596bALSA-2023:5264
AlmaLinux8libvirt, libvirt-nss, libvirt-docs and 25 more8.0.0-19.2.module_el8.8.0+3585+76b9c397.almaALSA-2023:5264
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.6.0+2880+7d9e3703ALSA-2023:5264
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.6.0+3161+a07c0ea5ALSA-2023:5264
14 more for AlmaLinux in the JSON.
Rocky Linux8hivex0:1.3.18-23.module+el8.10.0+1590+a67ab969RLSA-2023:5264
Rocky Linux8hivex0:1.3.18-23.module+el8.10.0+1835+43f01cbbRLSA-2023:5264
Rocky Linux8libguestfs1:1.44.0-9.module+el8.10.0+1590+a67ab969.rockyRLSA-2023:5264
Rocky Linux8libguestfs1:1.44.0-9.module+el8.10.0+1835+43f01cbb.rocky.rockyRLSA-2023:5264
Rocky Linux8libiscsi0:1.18.0-8.module+el8.10.0+1590+a67ab969RLSA-2023:5264
Rocky Linux8libiscsi0:1.18.0-8.module+el8.10.0+1835+43f01cbbRLSA-2023:5264
Rocky Linux8libnbd0:1.6.0-5.module+el8.10.0+1590+a67ab969RLSA-2023:5264
Rocky Linux8libnbd0:1.6.0-5.module+el8.10.0+1835+43f01cbbRLSA-2023:5264
Rocky Linux8libtpms0:0.9.1-2.20211126git1ff6fe1f43.module+el8.10.0+1590+a67ab969RLSA-2023:5264
Rocky Linux8libtpms0:0.9.1-2.20211126git1ff6fe1f43.module+el8.10.0+1835+43f01cbbRLSA-2023:5264
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.10.0+1590+a67ab969RLSA-2023:5264
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.10.0+1835+43f01cbbRLSA-2023:5264
17 more for Rocky Linux in the JSON.
Alpinev3.17, v3.18, v3.19 and 5 morentfs-3g2022.10.3-r0ALPINE-CVE-2022-40284
Azure Linux2ntfs-3g2022.10.3-1AZL-11388

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw has a lower impact on Red Hat Enterprise Linux because the ntfs-3g tool is run in a supermin appliance, which is similar to a virtual machine instantiated on the fly, and it does not have the SUID bit set. Thus an attacker is very limited on what he can do to the vulnerable system.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Advanced Virtualization for RHEL 8.4.0.EUSvirt:av-8040020230901100845.522a0ee4Fixed 2023-09-28RHSA-2023:5405
Advanced Virtualization for RHEL 8.4.0.EUSvirt-devel:av-8040020230901100845.522a0ee4Fixed 2023-09-28RHSA-2023:5405
Red Hat Enterprise Linux 8virt-devel:rhel-8080020230901075317.63b34585Fixed 2023-09-19RHSA-2023:5264
Red Hat Enterprise Linux 8virt:rhel-8080020230901075317.63b34585Fixed 2023-09-19RHSA-2023:5264
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsvirt:rhel-8010020230902123217.c27ad7f8Fixed 2023-09-19RHSA-2023:5239
Red Hat Enterprise Linux 8.2 Advanced Update Supportvirt:rhel-8020020230902114249.4cda2c84Fixed 2023-10-10RHSA-2023:5587
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicevirt:rhel-8020020230902114249.4cda2c84Fixed 2023-10-10RHSA-2023:5587
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionsvirt:rhel-8020020230902114249.4cda2c84Fixed 2023-10-10RHSA-2023:5587
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportvirt:rhel-8040020230902084954.522a0ee4Fixed 2023-10-17RHSA-2023:5796
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicevirt:rhel-8040020230902084954.522a0ee4Fixed 2023-10-17RHSA-2023:5796
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsvirt:rhel-8040020230902084954.522a0ee4Fixed 2023-10-17RHSA-2023:5796
Red Hat Enterprise Linux 8.6 Extended Update Supportvirt-devel:rhel-8060020231128234847.ad008a3aFixed 2024-01-25RHSA-2024:0404
Red Hat Enterprise Linux 8.6 Extended Update Supportvirt:rhel-8060020231128234847.ad008a3aFixed 2024-01-25RHSA-2024:0404
Red Hat Enterprise Linux 9libguestfs-winsupport-0:9.2-2.el9_2Fixed 2023-10-30RHSA-2023:6167
Red Hat Enterprise Linux 9.0 Extended Update Supportlibguestfs-winsupport-0:9.0-2.el9_0Fixed 2023-10-30RHSA-2023:6168
Red Hat Enterprise Linux 7libguestfs-winsupportOut of support scope
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:av/libguestfs-winsupportAffected
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt-devel:av/libguestfs-winsupportAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-40284.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON