GHSA-9GP2-2M33-C7JR

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:

mm/truncate: fix the zeroing end of pagecache_isize_extended()

A process that extends a file by 4 GiB or more past a dirty folio, on a file system whose block size is smaller than the page size (ext4 with 1k blocks), reads back the bytes it wrote through a shared mapping beyond the old end of file instead of zeroes, and a later write into that block carries them to the disk. With the example of commit 52aecaee1c26 ("mm: zero range of eof folio exposed by inode size extension") and the truncate taken 4 GiB further (pwrite 2k at 0, mmap the first page and write 'X' over [2k, 4k), truncate(2) to 4 GiB + 2k), the read of [2k, 4k) returns the 2048 'X' bytes, and a pwrite of 16 bytes at 3k followed by fsync() and a remount leaves 1008 'X' bytes on the disk in [3k+16, 4k). No privilege is needed, and every size extension of 4 GiB or more reaches it: truncate(2)/ftruncate(2) through truncate_setsize(), writes beyond the end of file through generic_write_end(), ext4, iomap, btrfs, exfat, ntfs, afs and orangefs. Affected since v6.13.

pagecache_isize_extended() zeroes the part of the dirty folio straddling the old end of file that the size extension exposes, from the old size to the new size or the end of the folio, whichever comes first:

end = min_t(unsigned int, to - folio_pos(folio), folio_size(folio));

min_t() converts both operands to unsigned int before comparing, so the loff_t difference to - folio_pos(folio) is reduced modulo 2^32 first. When the file grows by 4 GiB or more past the folio, end is that residue instead of folio_size(folio): below offset nothing is zeroed, above it only [offset, end) is. The bytes beyond the old end of file stay in the dirty folio and, now inside i_size, are file data.

Compare in loff_t; the result is at most folio_size(folio) and fits end.

Found while formally verifying pagecache_isize_extended() against the kernel binary.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99916"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:20:27Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/truncate: fix the zeroing end of pagecache_isize_extended()\n\nA process that extends a file by 4 GiB or more past a dirty folio, on a\nfile system whose block size is smaller than the page size (ext4 with 1k\nblocks), reads back the bytes it wrote through a shared mapping beyond the\nold end of file instead of zeroes, and a later write into that block\ncarries them to the disk.  With the example of commit 52aecaee1c26 (\"mm:\nzero range of eof folio exposed by inode size extension\") and the truncate\ntaken 4 GiB further (pwrite 2k at 0, mmap the first page and write \u0027X\u0027\nover [2k, 4k), truncate(2) to 4 GiB + 2k), the read of [2k, 4k) returns\nthe 2048 \u0027X\u0027 bytes, and a pwrite of 16 bytes at 3k followed by fsync() and\na remount leaves 1008 \u0027X\u0027 bytes on the disk in [3k+16, 4k).  No privilege\nis needed, and every size extension of 4 GiB or more reaches it:\ntruncate(2)/ftruncate(2) through truncate_setsize(), writes beyond the end\nof file through generic_write_end(), ext4, iomap, btrfs, exfat, ntfs, afs\nand orangefs.  Affected since v6.13.\n\npagecache_isize_extended() zeroes the part of the dirty folio straddling\nthe old end of file that the size extension exposes, from the old size to\nthe new size or the end of the folio, whichever comes first:\n\n\tend = min_t(unsigned int, to - folio_pos(folio), folio_size(folio));\n\nmin_t() converts both operands to unsigned int before comparing, so the\nloff_t difference to - folio_pos(folio) is reduced modulo 2^32 first. \nWhen the file grows by 4 GiB or more past the folio, end is that residue\ninstead of folio_size(folio): below offset nothing is zeroed, above it\nonly [offset, end) is.  The bytes beyond the old end of file stay in the\ndirty folio and, now inside i_size, are file data.\n\nCompare in loff_t; the result is at most folio_size(folio) and fits end.\n\nFound while formally verifying pagecache_isize_extended() against the\nkernel binary.",
  "id": "GHSA-9gp2-2m33-c7jr",
  "modified": "2026-11-30T15:32:49Z",
  "published": "2026-11-30T15:32:49Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99916"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5b040ba4b592f9ccbc7d072767e1be8c545c9f24"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8f9039840588dd618c72a726c192126bb7b98228"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f899e3c62666840d2dfe142b812651c60ed7942d"
    }
  ],
  "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.