{"id":"CVE-2026-99970","summary":"exfat: drain in-flight DIO before buffered writes","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nexfat: drain in-flight DIO before buffered writes\n\nAn asynchronous direct write can remain in flight after the inode lock is\nreleased. If a buffered operation dirties page cache while the direct\nwrite is still pending, the direct write's post-I/O invalidation can find\nthe dirty pages, report a page cache invalidation failure, and record -EIO\nin the mapping error sequence. A later fsync() therefore returns -EIO.\n\nCommit 15cdefd0c0522f9d5e12d947fa04f4c11649b699 (\"ext4: drain\nin-flight DIO before buffered write fallback\") fixed the same race in\next4. ExFAT does not drain in-flight DIO before a regular buffered write,\nthe buffered fallback after iomap_dio_rw() returns -ENOTBLK or a short\nwrite, or the page-cache operations used to extend valid_size.\n\nWait for in-flight DIO before these paths can dirty page cache.\n\nA reproducer using concurrent AIO direct writes and buffered fallback\ntriggered the following warning and made a subsequent fsync() return\n-EIO:\n\n  Page cache invalidation failure on direct I/O. Possible data corruption\n  due to collision with buffered I/O!","modified":"2026-12-01T21:02:34.275792654Z","published":"2026-11-30T13:18:45.169Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99970.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/5ef4adf964ad0da0b45e876f8b2ea4b4177bd774"},{"type":"WEB","url":"https://git.kernel.org/stable/c/acea17f0f4c7742118375e96d3f876be34e449a5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99970.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99970"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"867b9c96dc837e09ef125a79dc151fa2fc7a5d32"},{"fixed":"5ef4adf964ad0da0b45e876f8b2ea4b4177bd774"},{"fixed":"acea17f0f4c7742118375e96d3f876be34e449a5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99970.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.2.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99970.json"}}],"schema_version":"1.9.2"}