CVE-2025-40067 (GCVE-0-2025-40067)

Vulnerability from cvelistv5 – Published: 2025-10-28 11:48 – Updated: 2026-08-05 12:07
VLAI
Title
fs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist
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.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: b35a50d639ca5259466ef5fea85529bb4fb17d5b , < 978aac54e93ea35aab20b32ae393d3d33964e7ae (git)
Affected: 3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc , < be66551da203862c689c12e1d35ce87217c017c1 (git)
Affected: d99208b91933fd2a58ed9ed321af07dacd06ddc3 , < 039ddf353cc33f6546a87ec1ac3210637d714bec (git)
Affected: d99208b91933fd2a58ed9ed321af07dacd06ddc3 , < 0dc7117da8f92dd5fe077d712a756eccbe377d40 (git)
Affected: 358d4f821c03add421a4c49290538a705852ccf1 (git)
Affected: a285395020780adac1ffbc844069c3d700bf007a (git)
Affected: 6.6.102 , < 6.6.112 (semver)
Affected: 6.12.42 , < 6.12.53 (semver)
Affected: 6.15.10 , < 6.16 (semver)
Affected: 6.16.1 , < 6.17 (semver)
Create a notification for this product.
Linux Linux Affected: 6.17
Unaffected: 0 , < 6.17 (semver)
Unaffected: 6.6.112 , ≤ 6.6.* (semver)
Unaffected: 6.12.53 , ≤ 6.12.* (semver)
Unaffected: 6.17.3 , ≤ 6.17.* (semver)
Unaffected: 6.18 , ≤ * (original_commit_for_fix)
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",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-40067",
      "date": "2026-08-06",
      "epss": "0.00154",
      "percentile": "0.05091"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-40067\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-10-28T12:15:41.167\",\"lastModified\":\"2026-07-30T06:24:09.427\",\"vulnStatus\":\"Deferred\",\"cveTags\":[],\"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.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"fs/ntfs3/index.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"b35a50d639ca5259466ef5fea85529bb4fb17d5b\",\"lessThan\":\"978aac54e93ea35aab20b32ae393d3d33964e7ae\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc\",\"lessThan\":\"be66551da203862c689c12e1d35ce87217c017c1\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"d99208b91933fd2a58ed9ed321af07dacd06ddc3\",\"lessThan\":\"039ddf353cc33f6546a87ec1ac3210637d714bec\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"d99208b91933fd2a58ed9ed321af07dacd06ddc3\",\"lessThan\":\"0dc7117da8f92dd5fe077d712a756eccbe377d40\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"358d4f821c03add421a4c49290538a705852ccf1\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"a285395020780adac1ffbc844069c3d700bf007a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6.6.102\",\"lessThan\":\"6.6.112\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.12.42\",\"lessThan\":\"6.12.53\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.15.10\",\"lessThan\":\"6.16\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.16.1\",\"lessThan\":\"6.17\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"fs/ntfs3/index.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.17\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.17\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.112\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.53\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.17.3\",\"lessThanOrEqual\":\"6.17.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/039ddf353cc33f6546a87ec1ac3210637d714bec\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/0dc7117da8f92dd5fe077d712a756eccbe377d40\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/978aac54e93ea35aab20b32ae393d3d33964e7ae\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/be66551da203862c689c12e1d35ce87217c017c1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:16:06+00:00",
      "cve": "CVE-2025-40067",
      "id": "CVE-2025-40067",
      "initial_release_date": "2025-10-28T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: fs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-40067.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-07-26T16:42:39Z",
      "cve": "CVE-2025-40067",
      "id": "CVE-2025-40067",
      "initial_release_date": "2025-10-30T00:24:40Z",
      "product_status:known_not_affected": "407",
      "product_status:recommended": "6",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-40067",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-40067.json",
      "version": "8"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…