GHSA-8WFM-4GV2-92RF

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:

iomap: don't mark unwritten parts of a folio uptodate

For a buffered write into a hole, an unwritten or new extent, or past EOF __iomap_write_begin() zeroes the parts of the blocks outside of the write and then marks the blocks uptodate. That includes the range of the write itself which still holds whatever was in the folio before. It only becomes valid once the copy from userspace has filled it in.

But the copy can come up short and __iomap_write_end() only rejects a short copy if the folio isn't uptodate. If the zeroed blocks were all that was missing the folio is uptodate by then, the short copy is accepted, and the rest of the range is exposed to readers and can end up on disk. A source buffer that ends in an unmapped page is enough:

    ftruncate(fd, 4096);
    pwrite(fd, p, 3000, 100);    /* 16 bytes at p, then PROT_NONE */
    pread(fd, buf, 4096, 0);

The write returns 16 and the read returns 2984 bytes of whatever was in that page before. If other blocks of the folio aren't uptodate the short copy is rejected but the zeroed blocks keep their uptodate bits and the retry with the copied length leaves the same bytes behind.

Only mark blocks uptodate in __iomap_write_begin() after reading them. __iomap_write_end() marks the zeroed blocks uptodate once the copy has succeeded and rejects a short copy.

Willy reported this back in 2024 (cf. 1) and Zhang Yi posted the same fix (cf. 2) but it never got merged.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99846"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:20:17Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\niomap: don\u0027t mark unwritten parts of a folio uptodate\n\nFor a buffered write into a hole, an unwritten or new extent, or past\nEOF __iomap_write_begin() zeroes the parts of the blocks outside of the\nwrite and then marks the blocks uptodate. That includes the range of the\nwrite itself which still holds whatever was in the folio before. It only\nbecomes valid once the copy from userspace has filled it in.\n\nBut the copy can come up short and __iomap_write_end() only rejects a\nshort copy if the folio isn\u0027t uptodate. If the zeroed blocks were all\nthat was missing the folio is uptodate by then, the short copy is\naccepted, and the rest of the range is exposed to readers and can end up\non disk. A source buffer that ends in an unmapped page is enough:\n\n        ftruncate(fd, 4096);\n        pwrite(fd, p, 3000, 100);    /* 16 bytes at p, then PROT_NONE */\n        pread(fd, buf, 4096, 0);\n\nThe write returns 16 and the read returns 2984 bytes of whatever was in\nthat page before. If other blocks of the folio aren\u0027t uptodate the short\ncopy is rejected but the zeroed blocks keep their uptodate bits and the\nretry with the copied length leaves the same bytes behind.\n\nOnly mark blocks uptodate in __iomap_write_begin() after reading them.\n__iomap_write_end() marks the zeroed blocks uptodate once the copy has\nsucceeded and rejects a short copy.\n\nWilly reported this back in 2024 (cf. [1]) and Zhang Yi posted the same\nfix (cf. [2]) but it never got merged.\n\n[1]: https://lore.kernel.org/all/ZqsN5ouQTEc1KAzV@casper.infradead.org\n[2]: https://lore.kernel.org/all/20240812121159.3775074-6-yi.zhang@huaweicloud.com",
  "id": "GHSA-8wfm-4gv2-92rf",
  "modified": "2026-11-30T15:32:46Z",
  "published": "2026-11-30T15:32:46Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99846"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/21b81cabfc4d626d2b3d5ea949d4e6246fa53ef0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4057744d3eb110c563c6e26dea3c1672c4a782b7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/526d31b2b579b5c93efc2863caf92fae0638cbcb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5fbfe1b40716d17bb1315a19f4dcd466737f87f4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a4193b4af359db84b2cdf3a040752861984c636b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b27c7d2fbf3cc91236b02f2252f19a2996fb77f4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c9370de5301e30f14839b7f955e6f45c30bc9dc3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dff8ce6ff2b8ae5dbe67c32b68f95567e2283cbd"
    }
  ],
  "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.