Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93235 Overview
CVE-2026-93235 affects the Flash-Friendly File System (f2fs) implementation in the Linux kernel. When a file size is extended across an unaligned end-of-file (EOF) boundary via truncate, fallocate, or write operations, post-EOF data in the partial page is not consistently zeroed before the inode is committed with the updated i_size. This leaves stale on-disk data beyond the previous EOF visible after remount or crash recovery. The issue was reproduced through fstests generic/794, which detected non-zero bytes in the gap region [4080,4096) following a shutdown and remount cycle.
Critical Impact
Stale disk data beyond a previous EOF boundary can be exposed to userspace after remount or crash recovery, potentially leaking information from unrelated prior file content.
Affected Products
- Linux kernel f2fs filesystem driver
- Systems configured with the fsync_mode=strict mount option scenario
- Non-Android deployments of f2fs that permit non-pinfile direct writes via physical block address
Discovery Timeline
- 2026-09-24 - CVE CVE-2026-93235 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-93235
Vulnerability Analysis
The vulnerability resides in the f2fs file size extension path. When a write, truncate, or fallocate operation extends i_size across an unaligned page boundary, the kernel must zero the gap between the previous EOF and the new boundary within the partial page. The affected code paths did not consistently mark that zeroed region dirty in the page cache and flush it before persisting the updated inode. As a result, after a remount or crash recovery, any residual bytes on the underlying block beyond the previous EOF can resurface in reads of the extended range.
The f2fs reproducer in generic/794 demonstrated this by writing 0x5a bytes directly to a physical block address while the filesystem was unmounted, then extending the file size through supported APIs. After sync_range, shutdown -f, and a remount, the gap [4080,4096) contained the 0x5a pattern instead of zeros.
Root Cause
f2fs is a log-structured filesystem (LFS), which normally prevents direct writes to allocated blocks except for pinned files with section-aligned sizes. On Android, this constraint keeps the issue latent. In other environments, out-of-band writes to physical blocks combined with incomplete post-EOF zeroing during size extension expose the previously written data. The fix enforces zeroing and writeback of the partial page before the inode i_size update, gated under the fsync_mode=strict mount option.
Attack Vector
Exploitation requires local access and the ability to extend a file across an unaligned EOF boundary on an f2fs volume where prior block contents are not guaranteed to be zero. The vulnerability does not provide code execution; it enables information disclosure of previously written on-disk data. See the upstream fix commits referenced in Kernel Git Commit 32c7f11 and Kernel Git Commit c42608c for technical details.
Detection Methods for CVE-2026-93235
Indicators of Compromise
- Unexpected non-zero data appearing in file ranges that should contain zeros after a truncate, fallocate, or append-write extension on f2fs.
- generic/794 fstests failure output showing gap data mismatch after shutdown and remount.
- Discrepancies between in-memory file content and post-remount content on f2fs volumes.
Detection Strategies
- Run the upstream fstestsgeneric/794 test against f2fs volumes to confirm whether the kernel in use zeroes post-EOF data correctly.
- Audit kernel versions deployed across Linux fleets and compare against the fix commits listed in the upstream references.
- Review mount options for f2fs filesystems to identify whether fsync_mode=strict is in effect where crash-consistency guarantees are required.
Monitoring Recommendations
- Track kernel package versions in configuration management and alert on hosts running pre-fix f2fs builds.
- Collect kernel version and mount option telemetry from Linux endpoints to establish exposure baselines.
- Monitor filesystem integrity test results in CI or production validation pipelines where f2fs is in use.
How to Mitigate CVE-2026-93235
Immediate Actions Required
- Inventory all Linux hosts using f2fs, including embedded, mobile derivative, and server workloads.
- Plan upgrades to a Linux kernel version containing the referenced fix commits.
- Where the strict crash-consistency behavior is required, mount affected f2fs volumes with fsync_mode=strict after upgrading.
Patch Information
The fix is distributed across multiple upstream stable branches. Review the following commits and apply the kernel update appropriate for your distribution: Kernel Git Commit 32c7f11, Kernel Git Commit 5eced87, Kernel Git Commit 6882d45, Kernel Git Commit 91ec55d, and Kernel Git Commit c42608c.
Workarounds
- Avoid using f2fs for workloads that extend file sizes across unaligned EOF boundaries where prior block contents may be sensitive.
- On Android-style deployments, continue using pinfiles with section-aligned sizes, which do not exhibit the issue.
- Where upgrades are deferred, ensure f2fs volumes are backed by storage that is zeroed before provisioning to limit exposure of residual data.
# Configuration example: mount f2fs with strict fsync semantics after patching
mount -t f2fs -o fsync_mode=strict /dev/<device> /mnt/<mountpoint>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

