CVE-2025-40067 (GCVE-0-2025-40067)
Vulnerability from cvelistv5
Published
2025-10-28 11:48
Modified
2026-08-05 12:07
Summary
In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist Index allocation requires at least one bit in the $BITMAP attribute to track usage of index entries. If the bitmap is empty while index blocks are already present, this reflects on-disk corruption. syzbot triggered this condition using a malformed NTFS image. During a rename() operation involving a long filename (which spans multiple index entries), the empty bitmap allowed the name to be added without valid tracking. Subsequent deletion of the original entry failed with -ENOENT, due to unexpected index state. Reject such cases by verifying that the bitmap is not empty when index blocks exist.
Impacted products
Vendor Product Version
Linux Linux Version: b35a50d639ca5259466ef5fea85529bb4fb17d5b
Version: 3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc
Version: d99208b91933fd2a58ed9ed321af07dacd06ddc3
Version: d99208b91933fd2a58ed9ed321af07dacd06ddc3
Version: 358d4f821c03add421a4c49290538a705852ccf1
Version: a285395020780adac1ffbc844069c3d700bf007a
Version: 6.6.102   
Version: 6.12.42   
Version: 6.15.10   
Version: 6.16.1   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/ntfs3/index.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "978aac54e93ea35aab20b32ae393d3d33964e7ae",
              "status": "affected",
              "version": "b35a50d639ca5259466ef5fea85529bb4fb17d5b",
              "versionType": "git"
            },
            {
              "lessThan": "be66551da203862c689c12e1d35ce87217c017c1",
              "status": "affected",
              "version": "3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc",
              "versionType": "git"
            },
            {
              "lessThan": "039ddf353cc33f6546a87ec1ac3210637d714bec",
              "status": "affected",
              "version": "d99208b91933fd2a58ed9ed321af07dacd06ddc3",
              "versionType": "git"
            },
            {
              "lessThan": "0dc7117da8f92dd5fe077d712a756eccbe377d40",
              "status": "affected",
              "version": "d99208b91933fd2a58ed9ed321af07dacd06ddc3",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "358d4f821c03add421a4c49290538a705852ccf1",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "a285395020780adac1ffbc844069c3d700bf007a",
              "versionType": "git"
            },
            {
              "lessThan": "6.6.112",
              "status": "affected",
              "version": "6.6.102",
              "versionType": "semver"
            },
            {
              "lessThan": "6.12.53",
              "status": "affected",
              "version": "6.12.42",
              "versionType": "semver"
            },
            {
              "lessThan": "6.16",
              "status": "affected",
              "version": "6.15.10",
              "versionType": "semver"
            },
            {
              "lessThan": "6.17",
              "status": "affected",
              "version": "6.16.1",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/ntfs3/index.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.17"
            },
            {
              "lessThan": "6.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.112",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.53",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.17.*",
              "status": "unaffected",
              "version": "6.17.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.18",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.112",
                  "versionStartIncluding": "6.6.102",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.53",
                  "versionStartIncluding": "6.12.42",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17.3",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.15.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.16.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist\n\nIndex allocation requires at least one bit in the $BITMAP attribute to\ntrack usage of index entries. If the bitmap is empty while index blocks\nare already present, this reflects on-disk corruption.\n\nsyzbot triggered this condition using a malformed NTFS image. During a\nrename() operation involving a long filename (which spans multiple\nindex entries), the empty bitmap allowed the name to be added without\nvalid tracking. Subsequent deletion of the original entry failed with\n-ENOENT, due to unexpected index state.\n\nReject such cases by verifying that the bitmap is not empty when index\nblocks exist."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerability is reached by mounting a crafted NTFS volume and issuing a local rename() syscall on it; ntfs3 is a local block-device filesystem with no network exposure.\nAC:L - The attacker fully controls the on-disk image and can deterministically craft a directory with an empty $I30 $BITMAP plus existing index blocks, then trigger the split with a single long-filename rename; no race or uncontrollable condition is involved.\nPR:N - The attacker only needs to supply the malicious NTFS image (USB stick, disk image, removable media); the mount is performed by the system/automounter or a privileged user, so the attacker holds no privileges on the target.\nUI:R - The crafted NTFS filesystem must be mounted \u2014 via a user inserting the removable media or an administrator/automounter mounting the image \u2014 before the rename() path can be exercised.\nS:U - The corruption and crash stay within the kernel of the machine that mounted the image; no VM, IOMMU, or other security-authority boundary is crossed.\nC:H - Reusing an in-use VBN creates two aliased indx_node objects over the same block, leaving index headers that no longer describe their contents and entries spliced across unrelated index blocks, which exposes directory metadata through the index parsers to the attacker.\nI:H - A live index allocation block is re-formatted and overwritten with no bitmap tracking, destroying existing directory entries and leaving the inode with an unremovable duplicate $FILE_NAME plus a bitmap/allocation mismatch that propagates further metadata corruption.\nA:H - The failed rename rollback trips WARN_ON() in ni_rename(), which is a kernel panic on the panic_on_warn configurations common in hardened, Android, and cloud deployments, and the volume is additionally marked NTFS_DIRTY_ERROR."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:07:30.372Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/978aac54e93ea35aab20b32ae393d3d33964e7ae"
        },
        {
          "url": "https://git.kernel.org/stable/c/be66551da203862c689c12e1d35ce87217c017c1"
        },
        {
          "url": "https://git.kernel.org/stable/c/039ddf353cc33f6546a87ec1ac3210637d714bec"
        },
        {
          "url": "https://git.kernel.org/stable/c/0dc7117da8f92dd5fe077d712a756eccbe377d40"
        }
      ],
      "title": "fs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-40067",
    "datePublished": "2025-10-28T11:48:37.034Z",
    "dateReserved": "2025-04-16T07:20:57.159Z",
    "dateUpdated": "2026-08-05T12:07:30.372Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…