Skip to content
Heist/ feed
Unrated

fs: ntfs3: fix infinite loop in attr_load_runs_range on inconsistent metadata

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: fs: ntfs3: fix infinite loop in attr_load_runs_range on inconsistent metadata We found an infinite loop bug in the ntfs3 file system that can lead to a Denial-of-Service (DoS) condition. A malformed NTFS image can cause an infinite loop when an attribute header indicates an empty run list, while directory entries reference it as containing actual data. In NTFS, setting evcn=-1 with svcn=0 is a valid way to represent an empty run list, and run_unpack() correctly handles this by checking if evcn + 1 equals svcn and returning early without parsing any run data. However, this creates a problem when there is metadata inconsistency, where the attribute header claims to be empty (evcn=-1) but the caller expects to read actual data. When run_unpack() immediately returns success upon seeing this condition, it leaves the runs_tree uninitialized with run->runs as a NULL. The calling function attr_load_runs_range() assumes that a successful return means that the runs were loaded and sets clen to 0, expecting the next run_lookup_entry() call to succeed. Because runs_tree remains uninitialized, run_lookup_entry() continues to fail, and the loop increments vcn by zero (vcn += 0), leading to an infinite loop. This patch adds a retry counter to detect when run_lookup_entry() fails consecutively after attr_load_runs_vcn(). If the run is still not found on the second attempt, it indicates corrupted metadata and returns -EINVAL,

Announced Group revision 1
Original source ↗

CVE-2025-71265

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-71265

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "be71b5cba2e6485e8959da7a9f9a44461a1bb074",
        "lessThan": "6f07a590616ff5f57f7c041d98e463fad9e9f763",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "be71b5cba2e6485e8959da7a9f9a44461a1bb074",
        "lessThan": "a89bc96d5abd8a4a8d5d911884ea347efcdf460b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "be71b5cba2e6485e8959da7a9f9a44461a1bb074",
        "lessThan": "af839013c70a24779f9d1afb1575952009312d38",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "be71b5cba2e6485e8959da7a9f9a44461a1bb074",
        "lessThan": "78b61f7eac37a63284774b147f38dd0be6cad43c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "be71b5cba2e6485e8959da7a9f9a44461a1bb074",
        "lessThan": "c0b43c45d45f59e7faad48675a50231a210c379b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "be71b5cba2e6485e8959da7a9f9a44461a1bb074",
        "lessThan": "3c3a6e951b9b53dab2ac460a655313cf04c4a10a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "be71b5cba2e6485e8959da7a9f9a44461a1bb074",
        "lessThan": "4b90f16e4bb5607fb35e7802eb67874038da4640",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/ntfs3/attrib.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.15"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.15",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.15.202",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.165",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.128",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.75",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.16",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19.6",
        "versionType": "semver",
        "lessThanOrEqual": "6.19.*"
      },
      {
        "status": "unaffected",
        "version": "7.0",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/ntfs3/attrib.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-71265

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#27151 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement