{"api_version":"1","generated_at":"2026-11-30T18:22:08+00:00","cve":"CVE-2026-99846","urls":{"html":"https://cve.report/CVE-2026-99846","api":"https://cve.report/api/cve/CVE-2026-99846.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99846","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99846"},"summary":{"title":"iomap: don't mark unwritten parts of a folio uptodate","description":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: don't 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't 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't 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","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:17","updated_at":"2026-11-30 14:20:17"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/dff8ce6ff2b8ae5dbe67c32b68f95567e2283cbd","name":"https://git.kernel.org/stable/c/dff8ce6ff2b8ae5dbe67c32b68f95567e2283cbd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/21b81cabfc4d626d2b3d5ea949d4e6246fa53ef0","name":"https://git.kernel.org/stable/c/21b81cabfc4d626d2b3d5ea949d4e6246fa53ef0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/526d31b2b579b5c93efc2863caf92fae0638cbcb","name":"https://git.kernel.org/stable/c/526d31b2b579b5c93efc2863caf92fae0638cbcb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c9370de5301e30f14839b7f955e6f45c30bc9dc3","name":"https://git.kernel.org/stable/c/c9370de5301e30f14839b7f955e6f45c30bc9dc3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5fbfe1b40716d17bb1315a19f4dcd466737f87f4","name":"https://git.kernel.org/stable/c/5fbfe1b40716d17bb1315a19f4dcd466737f87f4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4057744d3eb110c563c6e26dea3c1672c4a782b7","name":"https://git.kernel.org/stable/c/4057744d3eb110c563c6e26dea3c1672c4a782b7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a4193b4af359db84b2cdf3a040752861984c636b","name":"https://git.kernel.org/stable/c/a4193b4af359db84b2cdf3a040752861984c636b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b27c7d2fbf3cc91236b02f2252f19a2996fb77f4","name":"https://git.kernel.org/stable/c/b27c7d2fbf3cc91236b02f2252f19a2996fb77f4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99846","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99846","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9dc55f1389f9569acf9659e58dd836a9c70df217 4057744d3eb110c563c6e26dea3c1672c4a782b7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9dc55f1389f9569acf9659e58dd836a9c70df217 b27c7d2fbf3cc91236b02f2252f19a2996fb77f4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9dc55f1389f9569acf9659e58dd836a9c70df217 c9370de5301e30f14839b7f955e6f45c30bc9dc3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9dc55f1389f9569acf9659e58dd836a9c70df217 dff8ce6ff2b8ae5dbe67c32b68f95567e2283cbd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9dc55f1389f9569acf9659e58dd836a9c70df217 21b81cabfc4d626d2b3d5ea949d4e6246fa53ef0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9dc55f1389f9569acf9659e58dd836a9c70df217 5fbfe1b40716d17bb1315a19f4dcd466737f87f4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9dc55f1389f9569acf9659e58dd836a9c70df217 526d31b2b579b5c93efc2863caf92fae0638cbcb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9dc55f1389f9569acf9659e58dd836a9c70df217 a4193b4af359db84b2cdf3a040752861984c636b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/iomap/buffered-io.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"4057744d3eb110c563c6e26dea3c1672c4a782b7","status":"affected","version":"9dc55f1389f9569acf9659e58dd836a9c70df217","versionType":"git"},{"lessThan":"b27c7d2fbf3cc91236b02f2252f19a2996fb77f4","status":"affected","version":"9dc55f1389f9569acf9659e58dd836a9c70df217","versionType":"git"},{"lessThan":"c9370de5301e30f14839b7f955e6f45c30bc9dc3","status":"affected","version":"9dc55f1389f9569acf9659e58dd836a9c70df217","versionType":"git"},{"lessThan":"dff8ce6ff2b8ae5dbe67c32b68f95567e2283cbd","status":"affected","version":"9dc55f1389f9569acf9659e58dd836a9c70df217","versionType":"git"},{"lessThan":"21b81cabfc4d626d2b3d5ea949d4e6246fa53ef0","status":"affected","version":"9dc55f1389f9569acf9659e58dd836a9c70df217","versionType":"git"},{"lessThan":"5fbfe1b40716d17bb1315a19f4dcd466737f87f4","status":"affected","version":"9dc55f1389f9569acf9659e58dd836a9c70df217","versionType":"git"},{"lessThan":"526d31b2b579b5c93efc2863caf92fae0638cbcb","status":"affected","version":"9dc55f1389f9569acf9659e58dd836a9c70df217","versionType":"git"},{"lessThan":"a4193b4af359db84b2cdf3a040752861984c636b","status":"affected","version":"9dc55f1389f9569acf9659e58dd836a9c70df217","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/iomap/buffered-io.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.19"},{"lessThan":"4.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: don't 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't 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't 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"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:17:36.089Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/4057744d3eb110c563c6e26dea3c1672c4a782b7"},{"url":"https://git.kernel.org/stable/c/b27c7d2fbf3cc91236b02f2252f19a2996fb77f4"},{"url":"https://git.kernel.org/stable/c/c9370de5301e30f14839b7f955e6f45c30bc9dc3"},{"url":"https://git.kernel.org/stable/c/dff8ce6ff2b8ae5dbe67c32b68f95567e2283cbd"},{"url":"https://git.kernel.org/stable/c/21b81cabfc4d626d2b3d5ea949d4e6246fa53ef0"},{"url":"https://git.kernel.org/stable/c/5fbfe1b40716d17bb1315a19f4dcd466737f87f4"},{"url":"https://git.kernel.org/stable/c/526d31b2b579b5c93efc2863caf92fae0638cbcb"},{"url":"https://git.kernel.org/stable/c/a4193b4af359db84b2cdf3a040752861984c636b"}],"title":"iomap: don't mark unwritten parts of a folio uptodate","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99846","datePublished":"2026-11-30T13:17:36.089Z","dateReserved":"2026-09-25T10:25:14.437Z","dateUpdated":"2026-11-30T13:17:36.089Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:17","lastModifiedDate":"2026-11-30 14:20:17","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99846","Ordinal":"1","Title":"iomap: don't mark unwritten parts of a folio uptodate","CVE":"CVE-2026-99846","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99846","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: don't 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't 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't 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","Type":"Description","Title":"iomap: don't mark unwritten parts of a folio uptodate"}]}}}