{"id":"CVE-2026-99607","aliases":["CVE-2026-99607"],"related":[],"kind":"vulnerability","state":"published","title":"ext2: preserve IOMAP_F_DIRTY for extending direct writes","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\next2: preserve IOMAP_F_DIRTY for extending direct writes\n\next2_iomap_begin() sets IOMAP_F_DIRTY for writes that may extend i_size,\nbut clears the flag after ext2_get_blocks(). When the write uses an\nexisting mapped block, iomap can then use FUA and skip\ngeneric_write_sync(), even though ext2_dio_write_end_io() updates the\ninode size. An O_DSYNC write can therefore return without persisting\nthe new size.\n\nFor example, on a FUA-capable device, a 512-byte O_DIRECT|O_DSYNC write\nat offset 512 into a fsynced one-byte file returns successfully and\nextends the in-memory size to 1024, while an immediate read of the\non-disk inode still shows size 1. An explicit fsync persists the new\nsize.\n\nMove setting of IOMAP_F_DIRTY after the initialization.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\next2: preserve IOMAP_F_DIRTY for extending direct writes\n\next2_iomap_begin() sets IOMAP_F_DIRTY for writes that may extend i_size,\nbut clears the flag after ext2_get_blocks(). When the write uses an\nexisting mapped block, iomap can then use FUA and skip\ngeneric_write_sync(), even though ext2_dio_write_end_io() updates the\ninode size. An O_DSYNC write can therefore return without persisting\nthe new size.\n\nFor example, on a FUA-capable device, a 512-byte O_DIRECT|O_DSYNC write\nat offset 512 into a fsynced one-byte file returns successfully and\nextends the in-memory size to 1024, while an immediate read of the\non-disk inode still shows size 1. An explicit fsync persists the new\nsize.\n\nMove setting of IOMAP_F_DIRTY after the initialization.","source":"cvelist"}],"published":"2026-11-20T05:49:31.191Z","modified":"2026-11-23T08:18:02.683Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"fb5de4358e1aa4753dce73c4dc1aca73ff39cedd","fixed":"401e65a425ffc426346ea19d45e65998fe694bfb","status":"affected"},{"type":"git","introduced":"fb5de4358e1aa4753dce73c4dc1aca73ff39cedd","fixed":"45d79b40621212ae720d3712d36f31eb3ea1a2d5","status":"affected"},{"type":"git","introduced":"fb5de4358e1aa4753dce73c4dc1aca73ff39cedd","fixed":"6a5200c0f46ab94d0c29ff9934c81d0de6f7b47a","status":"affected"},{"type":"git","introduced":"fb5de4358e1aa4753dce73c4dc1aca73ff39cedd","fixed":"2e114662c376f5a5342f2f997c459971dbdf836b","status":"affected"},{"type":"git","introduced":"fb5de4358e1aa4753dce73c4dc1aca73ff39cedd","fixed":"4f91b042af212ca0b610e43f9a975ddc7f0d0923","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.5","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/401e65a425ffc426346ea19d45e65998fe694bfb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/45d79b40621212ae720d3712d36f31eb3ea1a2d5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6a5200c0f46ab94d0c29ff9934c81d0de6f7b47a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e114662c376f5a5342f2f997c459971dbdf836b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f91b042af212ca0b610e43f9a975ddc7f0d0923","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99607","url":"https://www.cve.org/CVERecord?id=CVE-2026-99607","licence":"CVE Terms of Use","modified":"2026-11-23T08:05:00.515Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99607","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99607","licence":"Public domain","modified":"2026-11-23T08:18:02.683Z"}],"updatedAt":"2026-11-25T22:59:52.278Z","epss":{"score":0.002,"percentile":0.10454,"date":"2026-12-01T12:00:22.000Z"}}