nilfs2: ignore non-fatal signals during synchronous log write wait

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

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 nilfs_rename(), a synchronous write requested within nilfs_transaction_commit(), triggered by a sync flag set by nilfs_commit_chunk(), 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 nilfs_segctor_sync(), which waits for the log writer thread to complete synchronous writes, to catch only fatal signals via fatal_signal_pending() 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 TASK_INTERRUPTIBLE to TASK_KILLABLE.

This serves as an effective interim stabilization measure without structural changes until a comprehensive fix for metadata consistency is implemented.

ProductVersions
Linux Linux9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before 7b2212493132a026910f68625ecfe0a7fc3278b2 Affected9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before 2bc40fd80bddd495e8bcdab552a47db4f6c0ba0a Affected9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before 8192fccc93a66c63c55e20261d6338d9f89e9d6f Affected9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before 06f43647ba1e3a053e7efb56b55597fe7df17baf Affected9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before 178d0e7bcfdd34c7846f2f19bea182f9075682a8 Affected9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before 5906e880cdf55ab7ebc2bf6446c543c7cfef2a89 Affected9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before ed5ef3f88c235d06c438678a641eb0ec5fdc8801 Affected9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before 7131aaa74bcc7c9da1f1d1c8724da75c775557a0 Affected
Linux Linux2.6.30 Affectedbefore 2.6.30 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.