ext2: preserve IOMAP_F_DIRTY for extending direct writes (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.20 % · percentile 10 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
Description
In the Linux kernel, the following vulnerability has been resolved: ext2: preserve IOMAP_F_DIRTY for extending direct writes ext2_iomap_begin() sets IOMAP_F_DIRTY for writes that may extend i_size, but clears the flag after ext2_get_blocks(). When the write uses an existing mapped block, iomap can then use FUA and skip generic_write_sync(), even though ext2_dio_write_end_io() updates the inode size. An O_DSYNC write can therefore return without persisting the new size. For example, on a FUA-capable device, a 512-byte O_DIRECT|O_DSYNC write at offset 512 into a fsynced one-byte file returns successfully and extends the in-memory size to 1024, while an immediate read of the on-disk inode still shows size 1. An explicit fsync persists the new size. Move setting of IOMAP_F_DIRTY after the initialization.
References
- https://git.kernel.org/stable/c/401e65a425ffc426346ea19d45e65998fe694bfb
- https://git.kernel.org/stable/c/45d79b40621212ae720d3712d36f31eb3ea1a2d5
- https://git.kernel.org/stable/c/6a5200c0f46ab94d0c29ff9934c81d0de6f7b47a
- https://git.kernel.org/stable/c/2e114662c376f5a5342f2f997c459971dbdf836b
- https://git.kernel.org/stable/c/4f91b042af212ca0b610e43f9a975ddc7f0d0923
European references
- ENISA EUVD · EUVD-2026-131057
- GCVE · GCVE-0-2026-99607
CERT-FR advisories
- CERTFR-2026-AVI-1679 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1638 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ fb5de4358e1aa4753dce73c4dc1aca73ff39cedd < 401e65a425ffc426346ea19d45e65998fe694bfb affected : ≥ fb5de4358e1aa4753dce73c4dc1aca73ff39cedd < 45d79b40621212ae720d3712d36f31eb3ea1a2d5 affected : ≥ fb5de4358e1aa4753dce73c4dc1aca73ff39cedd < 6a5200c0f46ab94d0c29ff9934c81d0de6f7b47a affected : ≥ fb5de4358e1aa4753dce73c4dc1aca73ff39cedd < 2e114662c376f5a5342f2f997c459971dbdf836b affected : ≥ fb5de4358e1aa4753dce73c4dc1aca73ff39cedd < 4f91b042af212ca0b610e43f9a975ddc7f0d0923 Other versions : unaffected |
| Linux · Linux | affected : 6.5 unaffected : ≥ 0 < 6.5 unaffected : ≥ 6.6.163 ≤ 6.6.* unaffected : ≥ 6.12.118 ≤ 6.12.* unaffected : ≥ 6.18.64 ≤ 6.18.* unaffected : ≥ 7.3.5 ≤ 7.3.* unaffected : ≥ 7.4-rc2 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |