CVE-2026-138936: nilfs2: ignore non-fatal signals during synchronous log write wait
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: ignore non-fatal signals during synchronous log write wait
Based on a syzbot report, Wang Jianjian pointed out that following a successful directory operation in nilfsrename(), a synchronous write requested within nilfstransactioncommit(), triggered by a sync flag set by nilfscommitchunk(), could be interrupted by a user signal. This interruption leaves in-memory metadata updates intact while returning an error, causing inconsistency with the VFS dentry cache and ultimately triggering a kernel warning.
According to "signal(7)", local disks are not classified as "slow devices" (such as terminals, FIFOs, or pipes) and their I/O operations on disk devices are not interrupted by signals. In kernel space, waiting for such disk I/O should therefore not be aborted by ordinary (non-fatal) signals.
Suppress this issue by modifying nilfssegctorsync(), which waits for the log writer thread to complete synchronous writes, to catch only fatal signals via fatalsignalpending() and return -EINTR rather than -ERESTARTSYS. To complement this change and prevent the wait loop from busy-looping when schedule() returns immediately due to a pending non-fatal signal, switch the wait state from TASKINTERRUPTIBLE to TASKKILLABLE.
This serves as an effective interim stabilization measure without structural changes until a comprehensive fix for metadata consistency is implemented.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Modify Linux kernel nilfs2's nilfs_segctor_sync() to wait in TASK_KILLABLE so ordinary non-fatal signals do not interrupt synchronous log writes.