CVE-2026-99846
Last modified
CVE-2026-99846 is a vulnerability of currently unknown severity. 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.
Description
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. [1]: https://lore.kernel.org/all/ZqsN5ouQTEc1KAzV@casper.infradead.org [2]: https://lore.kernel.org/all/20240812121159.3775074-6-yi.zhang@huaweicloud.com
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 9dc55f1389f9569acf9659e58dd836a9c70df217, < 4057744d3eb110c563c6e26dea3c1672c4a782b7; >= 9dc55f1389f9569acf9659e58dd836a9c70df217, < b27c7d2fbf3cc91236b02f2252f19a2996fb77f4; >= 9dc55f1389f9569acf9659e58dd836a9c70df217, < c9370de5301e30f14839b7f955e6f45c30bc9dc3; >= 9dc55f1389f9569acf9659e58dd836a9c70df217, < dff8ce6ff2b8ae5dbe67c32b68f95567e2283cbd; >= 9dc55f1389f9569acf9659e58dd836a9c70df217, < 21b81cabfc4d626d2b3d5ea949d4e6246fa53ef0; >= 9dc55f1389f9569acf9659e58dd836a9c70df217, < 5fbfe1b40716d17bb1315a19f4dcd466737f87f4; >= 9dc55f1389f9569acf9659e58dd836a9c70df217, < 526d31b2b579b5c93efc2863caf92fae0638cbcb; >= 9dc55f1389f9569acf9659e58dd836a9c70df217, < a4193b4af359db84b2cdf3a040752861984c636b |
| Linux | Linux | 4.19 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-99846?
How severe is CVE-2026-99846?
How do I fix CVE-2026-99846?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-99840In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99841In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99842In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99843In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99844In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99845In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99847In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99848In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99849In the Linux kernel, the following vulnerability has been re…
- CVE-2026-9985Insufficient validation of untrusted input in Media in Googl…5.3
- CVE-2026-99850In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99851In the Linux kernel, the following vulnerability has been re…7.5
Are you affected by CVE-2026-99846?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
