GHSA-XQQX-Q3HW-V443

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

ntfs: do not map a vcn as a hole when its runlist lookup failed

ntfs_attr_vcn_to_rl() retries ntfs_map_runlist_nolock() for any lcn up to LCN_RL_NOT_MAPPED, which includes LCN_ENOENT, but turns a failed retry into an error only for LCN_RL_NOT_MAPPED. For LCN_ENOENT the error is dropped and the read path maps the range as a hole.

An LCN_ENOENT below allocated_size comes from a base extent with a highest_vcn of 0, which ntfs_mapping_pairs_decompress() takes to map the whole attribute, so the runlist ends after its last mapping pair. If the pairs end early, the retry finds the same extent and fails with -ENOENT. On a crafted volume with 4 KiB clusters, a 64-cluster file whose mapping pairs stop after 16 clusters reads 48 clusters of zeros, with no error.

The same layout gets a crafted $MFT past the check from "ntfs: fail the mount when $MFT needs its own extent records". With 512-byte clusters and $MFT's mapping pairs ending at vcn 4, an unpatched kernel hangs on the folio lock reading records 0-3. With the check alone, the -EIO is dropped, records 2 and 3 read as zeros and the mount carries on until check_mft_mirror() finds the zeroed record 2.

Fail the lookup whenever the retry leaves @vcn unmapped below allocated_size, -ENOENT included. At or beyond allocated_size the end of the runlist is still returned as it is.

A failed expansion in ntfs_non_resident_attr_expand() or ntfs_attrlist_repack() truncates the runlist under the runlist lock but restores allocated_size only after dropping it. A lookup in between would now fail, so restore allocated_size before dropping the lock in both, under size_lock, which ntfs_attr_vcn_to_rl() takes to read it.

The crafted file now fails from vcn 16 on with -EIO, and the crafted volume fails to mount with the check's message.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99997"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:20:43Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: do not map a vcn as a hole when its runlist lookup failed\n\nntfs_attr_vcn_to_rl() retries ntfs_map_runlist_nolock() for any lcn up\nto LCN_RL_NOT_MAPPED, which includes LCN_ENOENT, but turns a failed\nretry into an error only for LCN_RL_NOT_MAPPED.  For LCN_ENOENT the\nerror is dropped and the read path maps the range as a hole.\n\nAn LCN_ENOENT below allocated_size comes from a base extent with a\nhighest_vcn of 0, which ntfs_mapping_pairs_decompress() takes to map the\nwhole attribute, so the runlist ends after its last mapping pair.  If\nthe pairs end early, the retry finds the same extent and fails with\n-ENOENT.  On a crafted volume with 4 KiB clusters, a 64-cluster file\nwhose mapping pairs stop after 16 clusters reads 48 clusters of zeros,\nwith no error.\n\nThe same layout gets a crafted $MFT past the check from \"ntfs: fail the\nmount when $MFT needs its own extent records\".  With 512-byte clusters\nand $MFT\u0027s mapping pairs ending at vcn 4, an unpatched kernel hangs on\nthe folio lock reading records 0-3.  With the check alone, the -EIO is\ndropped, records 2 and 3 read as zeros and the mount carries on until\ncheck_mft_mirror() finds the zeroed record 2.\n\nFail the lookup whenever the retry leaves @vcn unmapped below\nallocated_size, -ENOENT included.  At or beyond allocated_size the end\nof the runlist is still returned as it is.\n\nA failed expansion in ntfs_non_resident_attr_expand() or\nntfs_attrlist_repack() truncates the runlist under the runlist lock but\nrestores allocated_size only after dropping it.  A lookup in between\nwould now fail, so restore allocated_size before dropping the lock in\nboth, under size_lock, which ntfs_attr_vcn_to_rl() takes to read it.\n\nThe crafted file now fails from vcn 16 on with -EIO, and the crafted\nvolume fails to mount with the check\u0027s message.",
  "id": "GHSA-xqqx-q3hw-v443",
  "modified": "2026-11-30T15:32:52Z",
  "published": "2026-11-30T15:32:52Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99997"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ce91fe5137a448d6ed0debb7493ff5a32d3bd5eb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e727ea7fc4e36b3d14b7bb304e82918aa6e2024a"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



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. The method is described in a publication.

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.