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

Vulnerability from cvelistv5 – Published: 2025-10-28 11:48 – Updated: 2026-10-30 12:22
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
Linux CNA under the mitre root
CNA scorecard D 53/100 over 6643 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 47856e10f8d5e066aa26b1f9c02d933fe0620399 , < aab2e34b139f6df71ab2b1adeec9927c206adc79 (git)
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)
guessed 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)
guessed 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": "aab2e34b139f6df71ab2b1adeec9927c206adc79",
              "status": "affected",
              "version": "47856e10f8d5e066aa26b1f9c02d933fe0620399",
              "versionType": "git"
            },
            {
              "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-10-30T12:22:46.051Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/aab2e34b139f6df71ab2b1adeec9927c206adc79"
        },
        {
          "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-10-30T12:22:46.051Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-40067",
      "date": "2026-11-10",
      "epss": "0.00164",
      "percentile": "0.05678"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "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": "aab2e34b139f6df71ab2b1adeec9927c206adc79",
                    "status": "affected",
                    "version": "47856e10f8d5e066aa26b1f9c02d933fe0620399",
                    "versionType": "git"
                  },
                  {
                    "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"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "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."
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nfs/ntfs3: rechazar la asignaci\u00f3n de \u00edndice si $BITMAP est\u00e1 vac\u00edo pero existen bloques\n\nLa asignaci\u00f3n de \u00edndice requiere al menos un bit en el atributo $BITMAP para rastrear el uso de las entradas de \u00edndice. Si el mapa de bits est\u00e1 vac\u00edo mientras los bloques de \u00edndice ya est\u00e1n presentes, esto refleja corrupci\u00f3n en disco.\n\nsyzbot activ\u00f3 esta condici\u00f3n usando una imagen NTFS malformada. Durante una operaci\u00f3n rename() que involucraba un nombre de archivo largo (que abarca m\u00faltiples entradas de \u00edndice), el mapa de bits vac\u00edo permiti\u00f3 que el nombre fuera a\u00f1adido sin un seguimiento v\u00e1lido. La eliminaci\u00f3n posterior de la entrada original fall\u00f3 con -ENOENT, debido a un estado de \u00edndice inesperado.\n\nRechazar tales casos verificando que el mapa de bits no est\u00e9 vac\u00edo cuando existan bloques de \u00edndice."
          }
        ],
        "id": "CVE-2025-40067",
        "lastModified": "2026-10-30T13:18:12.920",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2025-10-28T12:15:41.167",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "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/aab2e34b139f6df71ab2b1adeec9927c206adc79"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/be66551da203862c689c12e1d35ce87217c017c1"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-11-09T18:32:59+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": "200",
      "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"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.