CVE catalog

CVE-2021-39257

ntfs-3g affected and fixed versions

[CVE catalog]

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.

Severity
Medium · CVSS 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.40% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiantrixie-securityntfs-3g1:2022.10.3-5+deb13u3Fixed[CVE-2021-39257]
Debiantrixientfs-3g1:2021.8.22-2FixedDistribution-reported fixed boundary[CVE-2021-39257]
Debiantrixientfs-3g1:2022.10.3-5+deb13u2Fixed[CVE-2021-39257]
Debiansidntfs-3g1:2021.8.22-2FixedDistribution-reported fixed boundary[CVE-2021-39257]
Debiansidntfs-3g1:2026.9.28-2Fixed[CVE-2021-39257]
Debianforkyntfs-3g1:2021.8.22-2FixedDistribution-reported fixed boundary[CVE-2021-39257]
Debianforkyntfs-3g1:2026.9.28-2Fixed[CVE-2021-39257]
Debianbookworm-securityntfs-3g1:2022.10.3-1+deb12u3Fixed[CVE-2021-39257]
Debianbookwormntfs-3g1:2021.8.22-2FixedDistribution-reported fixed boundary[CVE-2021-39257]
Debianbookwormntfs-3g1:2022.10.3-1+deb12u3Fixed[CVE-2021-39257]

Showing 10 fix observations. All 26 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
UnknownRelease not reportedntfs-3g1:2021.8.22-2UnknownSource applicability is not establishedProvider not reported
Debianbookwormntfs-3g1:2021.8.22-2FixedDistribution-reported fixed boundary[CVE-2021-39257]
Debianbookwormntfs-3g1:2022.10.3-1+deb12u3Fixed[CVE-2021-39257]
Debianbookworm-securityntfs-3g1:2022.10.3-1+deb12u3Fixed[CVE-2021-39257]
Debianforkyntfs-3g1:2021.8.22-2FixedDistribution-reported fixed boundary[CVE-2021-39257]
Debianforkyntfs-3g1:2026.9.28-2Fixed[CVE-2021-39257]
Debiansidntfs-3g1:2021.8.22-2FixedDistribution-reported fixed boundary[CVE-2021-39257]
Debiansidntfs-3g1:2026.9.28-2Fixed[CVE-2021-39257]
Debiantrixientfs-3g1:2021.8.22-2FixedDistribution-reported fixed boundary[CVE-2021-39257]
Debiantrixientfs-3g1:2022.10.3-5+deb13u2Fixed[CVE-2021-39257]
Debiantrixie-securityntfs-3g1:2022.10.3-5+deb13u3Fixed[CVE-2021-39257]
Ubuntu18.04ntfs-3g1:2016.2.22AR.2-2UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntu18.04ntfs-3g1:2017.3.23-2UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntu18.04ntfs-3g1:2017.3.23-2ubuntu0.18.04.1UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntu18.04ntfs-3g1:2017.3.23-2ubuntu0.18.04.2UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntu18.04ntfs-3g1:2017.3.23-2ubuntu0.18.04.3UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntu20.04ntfs-3g1:2017.3.23AR.3-3ubuntu1UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntu20.04ntfs-3g1:2017.3.23AR.3-3ubuntu1.1UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntu22.04ntfs-3g1:2017.3.23AR.3-3ubuntu5UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntuprontfs-3g1:2014.2.15AR.3-3UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntuprontfs-3g1:2015.3.14AR.1-1UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntuprontfs-3g1:2015.3.14AR.1-1build1UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntuprontfs-3g1:2015.3.14AR.1-1ubuntu0.1UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntuprontfs-3g1:2015.3.14AR.1-1ubuntu0.2UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntuprontfs-3g1:2015.3.14AR.1-1ubuntu0.3UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Ubuntuprontfs-3g1:2015.3.14AR.1-1ubuntu0.3+esm1UnknownSource applicability is not established[UBUNTU-CVE-2021-39257]
Original provider fields
{
  "package_releases": [
    {
      "name": "ntfs-3g",
      "status": "fixed",
      "release": "sid",
      "version": "1:2026.9.28-2"
    },
    {
      "name": "ntfs-3g",
      "status": "fixed",
      "release": "forky",
      "version": "1:2026.9.28-2"
    },
    {
      "name": "ntfs-3g",
      "status": "fixed",
      "release": "trixie",
      "version": "1:2022.10.3-5+deb13u2"
    },
    {
      "name": "ntfs-3g",
      "status": "fixed",
      "release": "trixie-security",
      "version": "1:2022.10.3-5+deb13u3"
    },
    {
      "name": "ntfs-3g",
      "status": "fixed",
      "release": "bookworm",
      "version": "1:2022.10.3-1+deb12u3"
    },
    {
      "name": "ntfs-3g",
      "status": "fixed",
      "release": "bookworm-security",
      "version": "1:2022.10.3-1+deb12u3"
    }
  ],
  "fixed_versions": [
    {
      "bug": 988386,
      "name": "ntfs-3g",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "1:2021.8.22-2"
    },
    {
      "bug": 988386,
      "name": "ntfs-3g",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "1:2021.8.22-2"
    },
    {
      "bug": 988386,
      "name": "ntfs-3g",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "1:2021.8.22-2"
    },
    {
      "bug": 988386,
      "name": "ntfs-3g",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "1:2021.8.22-2"
    }
  ],
  "distribution_packages": [
    {
      "name": "ntfs-3g",
      "fixed_version": "1:2021.8.22-2",
      "applicability_unknown": true
    },
    {
      "name": "ntfs-3g",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1:2015.3.14AR.1-1ubuntu0.3+esm1"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "1:2014.2.15AR.3-3",
        "1:2015.3.14AR.1-1",
        "1:2015.3.14AR.1-1build1",
        "1:2015.3.14AR.1-1ubuntu0.1",
        "1:2015.3.14AR.1-1ubuntu0.2",
        "1:2015.3.14AR.1-1ubuntu0.3"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-39257",
      "fixed_version": "1:2015.3.14AR.1-1ubuntu0.3+esm1",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-39257",
      "provider_updated_at": "2026-04-22T12:59:21.149178Z",
      "applicability_unknown": true
    },
    {
      "name": "ntfs-3g",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1:2017.3.23-2ubuntu0.18.04.3"
            }
          ]
        }
      ],
      "release": "18.04",
      "versions": [
        "1:2016.2.22AR.2-2",
        "1:2017.3.23-2",
        "1:2017.3.23-2ubuntu0.18.04.1",
        "1:2017.3.23-2ubuntu0.18.04.2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-39257",
      "fixed_version": "1:2017.3.23-2ubuntu0.18.04.3",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-39257",
      "provider_updated_at": "2026-04-22T12:59:21.149178Z",
      "applicability_unknown": true
    },
    {
      "name": "ntfs-3g",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1:2017.3.23AR.3-3ubuntu1.1"
            }
          ]
        }
      ],
      "release": "20.04",
      "versions": [
        "1:2017.3.23AR.3-3ubuntu1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-39257",
      "fixed_version": "1:2017.3.23AR.3-3ubuntu1.1",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-39257",
      "provider_updated_at": "2026-04-22T12:59:21.149178Z",
      "applicability_unknown": true
    },
    {
      "name": "ntfs-3g",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1:2017.3.23AR.3-3ubuntu5"
            }
          ]
        }
      ],
      "release": "22.04",
      "versions": [],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-39257",
      "fixed_version": "1:2017.3.23AR.3-3ubuntu5",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-39257",
      "provider_updated_at": "2026-04-22T12:59:21.149178Z",
      "applicability_unknown": true
    }
  ]
}

[Debian bug #988386]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libntfs-3g89]Unknown

    Source package: [ntfs-3g]

    Details (4)
    • 1:2022.10.3-1+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

    • 1:2022.10.3-1+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

    • 1:2022.10.3-1+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

    • 1:2022.10.3-1+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

  • [ntfs-3g]Unknown
    Details (4)
    • 1:2022.10.3-1+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

    • 1:2022.10.3-1+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

    • 1:2022.10.3-1+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

    • 1:2022.10.3-1+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

  • [ntfs-3g-dev]Unknown

    Source package: [ntfs-3g]

    Details (4)
    • 1:2022.10.3-1+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

    • 1:2022.10.3-1+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

    • 1:2022.10.3-1+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

    • 1:2022.10.3-1+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · bookworm; dsa · ntfs-3g · debian · 12

[Debian 13 (Trixie)]

  • Source package: [ntfs-3g]

    Details (5)
    • 1:2022.10.3-5+deb13u1 · amd64 · trixie

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u1 · arm64 · trixie

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

  • [ntfs-3g]Unknown
    Details (5)
    • 1:2022.10.3-5+deb13u1 · amd64 · trixie

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u1 · arm64 · trixie

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

  • [ntfs-3g-dev]Unknown

    Source package: [ntfs-3g]

    Details (5)
    • 1:2022.10.3-5+deb13u1 · amd64 · trixie

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u1 · arm64 · trixie

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

    • 1:2022.10.3-5+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 1:2021.8.22-2

      dsa · ntfs-3g · debian · 13

Observed:

References