Skip to content
Fencer Vulns
high 7.8

CVE-2022-40284 json

A buffer overflow was discovered in NTFS-3G before 2022.10.3.

published 2022-11-06 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-43581

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 32%
public exploits
0
none known

Summary

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.

Patch / fix

  • tuxera ntfs-3g 2022.10.3
  • ntfs-3g Debian 14, Debian 13, Debian 12 1:2022.10.3-1

debian advisories DEBIAN-CVE-2022-40284

  • ntfs-3g Ubuntu 18.04 LTS 1:2017.3.23-2ubuntu0.18.04.5
  • ntfs-3g Ubuntu 20.04 LTS 1:2017.3.23AR.3-3ubuntu1.3
  • ntfs-3g Ubuntu 22.04 LTS 1:2021.8.22-3ubuntu1.2
  • ntfs-3g Ubuntu Pro 14.04 LTS 1:2013.1.13AR.1-2ubuntu2+esm4
  • ntfs-3g Ubuntu Pro 16.04 LTS 1:2015.3.14AR.1-1ubuntu0.3+esm4

ubuntu advisories UBUNTU-CVE-2022-40284

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libguestfs-winsupport RHEL 9 9.2-2.el9_2
  • SLOF advanced virtualization 8.4 20200717-1.gite18ddad8.module+el8.4.0+8855+a9e237a9
  • hivex advanced virtualization 8.4 1.3.18-21.module+el8.4.0+11609+2eba841a
  • netcf advanced virtualization 8.4 0.2.8-12.module+el8.4.0+8855+a9e237a9
  • swtpm advanced virtualization 8.4 0.4.2-1.20201201git2df14e3.module+el8.4.0+9341+96cf2672
  • libnbd advanced virtualization 8.4 1.6.0-5.module+el8.4.0+14155+dec4a5c7
  • nbdkit advanced virtualization 8.4 1.24.0-1.module+el8.4.0+9341+96cf2672
  • libtpms advanced virtualization 8.4 0.7.4-4.20201106git2452a24dab.module+el8.4.0+10596+32ba7df3

red hat advisories RHSA-2024:0404RHSA-2023:6168RHSA-2023:5587RHSA-2023:6167RHSA-2023:5796RHSA-2023:5405

  • ntfs-3g_ntfsprogs SLE Workstation Extension 15 SP4, SLE Workstation Extension 15 SP3, openSUSE Leap 15.4 +1 more 2022.5.17-150000.3.16.1
  • ntfs-3g_ntfsprogs SLE Workstation Extension 12 SP5, SLE Software Development Kit 12 SP5 2022.5.17-5.17.1

suse advisories SUSE-SU-2022:3866-1SUSE-SU-2022:3865-1

  • ntfs-3g_ntfsprogs openSUSE Tumbleweed 2022.10.3-1.1

opensuse advisories openSUSE-SU-2024:12473-1

  • libguestfs-winsupport AlmaLinux 9 9.2-2.el9_2
  • SLOF AlmaLinux 8 20210217-1.module_el8.6.0+2880+7d9e3703
  • hivex AlmaLinux 8 1.3.18-23.module_el8.6.0+2880+7d9e3703
  • hivex AlmaLinux 8 1.3.18-23.module_el8.6.0+3161+a07c0ea5
  • netcf AlmaLinux 8 0.2.8-12.module_el8.6.0+2880+7d9e3703
  • netcf AlmaLinux 8 0.2.8-12.module_el8.6.0+3161+a07c0ea5
  • swtpm AlmaLinux 8 0.7.0-4.20211109gitb79fd91.module_el8.7.0+3346+68867adb
  • libnbd AlmaLinux 8 1.6.0-5.module_el8.6.0+2880+7d9e3703

almalinux advisories ALSA-2023:6167ALSA-2023:5264

  • hivex Rocky Linux 8 1.3.18-23.module+el8.10.0+1835+43f01cbb
  • hivex Rocky Linux 8 1.3.18-23.module+el8.10.0+1590+a67ab969
  • netcf Rocky Linux 8 0.2.8-12.module+el8.10.0+1590+a67ab969
  • netcf Rocky Linux 8 0.2.8-12.module+el8.10.0+1835+43f01cbb
  • swtpm Rocky Linux 8 0.7.0-4.20211109gitb79fd91.module+el8.10.0+1835+43f01cbb
  • swtpm Rocky Linux 8 0.7.0-4.20211109gitb79fd91.module+el8.10.0+1590+a67ab969
  • libnbd Rocky Linux 8 1.6.0-5.module+el8.10.0+1590+a67ab969
  • libnbd Rocky Linux 8 1.6.0-5.module+el8.10.0+1835+43f01cbb

rocky linux advisories RLSA-2023:5264

  • ntfs-3g Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 2022.10.3-r0

alpine advisories ALPINE-CVE-2022-40284

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • ntfs-3g CBL-Mariner 2.0 2022.10.3-1

azure linux advisories AZL-11388

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-40284 updated cvss 3.3

NTFS-3G: buffer overflow issue in NTFS-3G can cause code execution via crafted metadata in an NTFS image

  • Red Hat Enterprise Linux 7 libguestfs-winsupport
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 Advanced Virtualization libguestfs-winsupport
    affected: workaround, no fix available
  • Red Hat Advanced Virtualization for RHEL 8.4.0.EUS netcf 0.2.8-12.module+el8.4.0+8855+a9e237a9, libnbd 1.6.0-5.module+el8.4.0+14155+dec4a5c7, nbdkit 1.24.0-1.module+el8.4.0+9341+96cf2672, hivex 1.3.18-21.module+el8.4.0+11609+2eba841a, nbdfuse 1.6.0-5.module+el8.4.0+14155+dec4a5c7, seabios 1.14.0-1.module+el8.4.0+8855+a9e237a9, +110 more
    fixed: vendor fix RHSA-2023:5405
  • Red Hat CodeReady Linux Builder EUS (v.8.6) libnbd 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, netcf 0.2.8-12.module+el8.6.0+14480+c0a3aa0f, hivex 1.3.18-23.module+el8.6.0+14480+c0a3aa0f, nbdfuse 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, SLOF 20210217-1.module+el8.6.0+14480+c0a3aa0f, libiscsi 1.18.0-8.module+el8.6.0+14480+c0a3aa0f, +38 more
    fixed: vendor fix RHSA-2024:0404
  • Red Hat Enterprise Linux AppStream (v. 8) libnbd 1.6.0-5.module+el8.8.0+16781+9f4724c2, netcf 0.2.8-12.module+el8.8.0+16781+9f4724c2, hivex 1.3.18-23.module+el8.8.0+16781+9f4724c2, nbdfuse 1.6.0-5.module+el8.8.0+16781+9f4724c2, nbdkit 1.24.0-5.module+el8.8.0+17308+05924798, SLOF 20210217-1.module+el8.8.0+16781+9f4724c2, +104 more
    fixed: vendor fix RHSA-2023:5264
  • Red Hat Enterprise Linux AppStream (v. 9) libguestfs-winsupport 9.2-2.el9_2
    fixed: vendor fix RHSA-2023:6167
  • Red Hat Enterprise Linux AppStream AUS (v. 8.2) hivex 1.3.15-7.module+el8.1.0+4066+0f1aadab, nbdkit 1.4.2-5.module+el8.1.0+4066+0f1aadab, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, seabios 1.11.1-4.module+el8.1.0+4066+0f1aadab, libiscsi 1.18.0-8.module+el8.1.0+4066+0f1aadab, supermin 5.1.19-9.module+el8.1.0+4066+0f1aadab, +79 more
    fixed: vendor fix RHSA-2023:5587
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) libnbd 1.2.2-1.module+el8.3.0+7353+9de0a3cc, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, nbdfuse 1.2.2-1.module+el8.3.0+7353+9de0a3cc, nbdkit 1.16.2-4.module+el8.3.0+6922+fd575af8, hivex 1.3.18-21.module+el8.4.0+10770+19c037f9, seabios 1.13.0-2.module+el8.3.0+7353+9de0a3cc, +87 more
    fixed: vendor fix RHSA-2023:5796
show 8 more
  • Red Hat Enterprise Linux AppStream E4S (v. 8.1) hivex 1.3.15-7.module+el8.1.0+4066+0f1aadab, nbdkit 1.4.2-5.module+el8.1.0+4066+0f1aadab, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, seabios 1.11.1-4.module+el8.1.0+4066+0f1aadab, libiscsi 1.18.0-8.module+el8.1.0+4066+0f1aadab, supermin 5.1.19-9.module+el8.1.0+4066+0f1aadab, +81 more
    fixed: vendor fix RHSA-2023:5239
  • Red Hat Enterprise Linux AppStream E4S (v. 8.2) hivex 1.3.15-7.module+el8.1.0+4066+0f1aadab, nbdkit 1.4.2-5.module+el8.1.0+4066+0f1aadab, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, seabios 1.11.1-4.module+el8.1.0+4066+0f1aadab, libiscsi 1.18.0-8.module+el8.1.0+4066+0f1aadab, supermin 5.1.19-9.module+el8.1.0+4066+0f1aadab, +80 more
    fixed: vendor fix RHSA-2023:5587
  • Red Hat Enterprise Linux AppStream E4S (v.8.4) libnbd 1.2.2-1.module+el8.3.0+7353+9de0a3cc, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, nbdfuse 1.2.2-1.module+el8.3.0+7353+9de0a3cc, nbdkit 1.16.2-4.module+el8.3.0+6922+fd575af8, hivex 1.3.18-21.module+el8.4.0+10770+19c037f9, seabios 1.13.0-2.module+el8.3.0+7353+9de0a3cc, +88 more
    fixed: vendor fix RHSA-2023:5796
  • Red Hat Enterprise Linux AppStream EUS (v.8.6) libnbd 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, netcf 0.2.8-12.module+el8.6.0+14480+c0a3aa0f, hivex 1.3.18-23.module+el8.6.0+14480+c0a3aa0f, nbdfuse 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, nbdkit 1.24.0-4.module+el8.6.0+14480+c0a3aa0f, SLOF 20210217-1.module+el8.6.0+14480+c0a3aa0f, +104 more
    fixed: vendor fix RHSA-2024:0404
  • Red Hat Enterprise Linux AppStream EUS (v.9.0) libguestfs-winsupport 9.0-2.el9_0
    fixed: vendor fix RHSA-2023:6168
  • Red Hat Enterprise Linux AppStream TUS (v. 8.2) hivex 1.3.15-7.module+el8.1.0+4066+0f1aadab, nbdkit 1.4.2-5.module+el8.1.0+4066+0f1aadab, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, seabios 1.11.1-4.module+el8.1.0+4066+0f1aadab, libiscsi 1.18.0-8.module+el8.1.0+4066+0f1aadab, supermin 5.1.19-9.module+el8.1.0+4066+0f1aadab, +79 more
    fixed: vendor fix RHSA-2023:5587
  • Red Hat Enterprise Linux AppStream TUS (v.8.4) libnbd 1.2.2-1.module+el8.3.0+7353+9de0a3cc, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, nbdfuse 1.2.2-1.module+el8.3.0+7353+9de0a3cc, nbdkit 1.16.2-4.module+el8.3.0+6922+fd575af8, hivex 1.3.18-21.module+el8.4.0+10770+19c037f9, seabios 1.13.0-2.module+el8.3.0+7353+9de0a3cc, +87 more
    fixed: vendor fix RHSA-2023:5796
  • Red Hat Enterprise Linux CRB (v. 8) libnbd 1.6.0-5.module+el8.8.0+16781+9f4724c2, netcf 0.2.8-12.module+el8.8.0+16781+9f4724c2, hivex 1.3.18-23.module+el8.8.0+16781+9f4724c2, nbdfuse 1.6.0-5.module+el8.8.0+16781+9f4724c2, SLOF 20210217-1.module+el8.8.0+16781+9f4724c2, seabios 1.16.0-4.module+el8.8.0+19627+2d14cb21, +38 more
    fixed: vendor fix RHSA-2023:5264

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
18 mo ago

Exploit prediction

0.38% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

Weakness
  • CWE-120 Buffer Copy without Checking Size of Input

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.