CVE-2026-138936

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

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

In the Linux kernel, a flaw in the nilfs2 filesystem causes the kernel to ignore non‑fatal signals while waiting for a synchronous log write to finish. The interrupted wait leaves in‑memory metadata changes uncommitted, while the operation reports a failure, leading to a mismatch between persistent metadata and the VFS dentry cache that triggers a kernel warning and may corrupt the file system state. The issue exemplifies improper signal handling and state management (CWE‑727).

Affected Systems

Any Linux system running a kernel that includes the nilfs2 filesystem implementation is potentially impacted. The vulnerability applies to all kernel versions containing the code paths in nilfs_rename(), nilfs_transaction_commit(), nilfs_commit_chunk(), and the nilfs_segctor_sync() helper, as no specific version list is provided.

Risk and Exploitability

The flaw does not provide an attacker‑controllable input or arbitrary code execution; the risk is limited to kernel instability and possible metadata corruption. EPSS information is unavailable, and the issue is not listed in the CISA KEV catalog. Exploitation would require the attacker to trigger a directory rename or transaction commit while a synchronous write is in progress and to have the process receive a non‑fatal signal, conditions that are difficult to orchestrate reliably. Therefore, the vulnerability should be treated as a medium‑severity issue and mitigated promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that updates nilfs_segctor_sync() to handle only fatal signals and switch the wait state to TASK_KILLABLE (the interim fix described in the advisory).
  • Upgrade the system to a kernel release that incorporates the nilfs2 fix once it becomes available, following the release notes for nilfs2 updates.
  • Verify that nilfs2 operations no longer generate kernel warnings and perform filesystem consistency checks (e.g., fsck) to ensure metadata integrity.

Generated by OpenCVE AI on November 30, 2026 at 18:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-727
Type Values Removed Values Added
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.
Title nilfs2: ignore non-fatal signals during synchronous log write wait
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:26 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM