CVE-2026-139473

nilfs2: reject non-regular inodes in dsync recovery

Published Nov 30, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

nilfs2: reject non-regular inodes in dsync recovery

During roll-forward recovery, nilfs_recover_dsync_blocks() obtains the
inode designated by fi_ino of a dsync log without checking its type.
If a corrupted image designates a special inode (e.g. a device node)
there, the inode's embedded bmap was never initialized:
__nilfs_read_inode() calls nilfs_bmap_read() only for regular files,
directories and symlinks. The subsequent nilfs_get_block() then
dereferences the uninitialized bmap->b_ops and jumps through it,
crashing the kernel or worse.

Regular files, directories, and symlinks are the only inode types
with data blocks to recover; reject anything else before touching
its block mapping.

[ryusuke: conformed AI tag to guidelines]

Analysis

AI-generated

Technical impact

During a nilfs2 roll‑forward recovery the recovery routine reads an inode number from the dsync log without first verifying that the inode is a regular file, directory, or symlink. If the inode refers to a special device or other non‑regular type, its block map has never been initialized. Subsequent code then dereferences an uninitialized pointer, causing a kernel crash. This instance aligns with CWE‑665. Based on the description, it is inferred that the vulnerability could lead to privilege escalation if an attacker can manipulate the filesystem during recovery, but this requires local access. The vulnerability therefore enables a denial of service through kernel crash and could be leveraged by a local attacker who can manipulate the filesystem during recovery.

Affected Systems

All Linux kernel installations that include the nilfs2 filesystem component are affected, regardless of vendor. The issue exists in all kernel versions prior to the fix for nilfs2’s dsync recovery logic.

Risk and Exploitability

The CVSS score is not provided, and the EPSS score is <1% (approximately 0.2 %), indicating a very low probability that this vulnerability will be exploited in the wild. The vulnerability is not listed in the CISA KEV catalog. Because the flaw lives in a kernel recovery routine, exploitation would likely require local or privileged access to trigger a corrupted dsync image, making remote exploitation unlikely. With the available evidence, the risk is a moderate local denial of service scenario, unlikely to be widely abused without first compromising the host or the filesystem.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the nilfs2 dsync recovery patch
  • If an update is not immediately available, consider temporarily disabling the nilfs2 file system or limiting its use to devices that cannot be corrupted (for example, encrypt the underlying storage to guard against tampered dsync logs)
  • Prior to recovery, verify the integrity and authenticity of any nilfs2 dsync logs or perform the recovery in a secure environment to reduce the chance of corrupt data being processed

Generated by OpenCVE AI on December 1, 2026 at 19:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-665
Type Values Removed Values Added
Weaknesses CWE-665
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nilfs2: reject non-regular inodes in dsync recovery During roll-forward recovery, nilfs_recover_dsync_blocks() obtains the inode designated by fi_ino of a dsync log without checking its type. If a corrupted image designates a special inode (e.g. a device node) there, the inode's embedded bmap was never initialized: __nilfs_read_inode() calls nilfs_bmap_read() only for regular files, directories and symlinks. The subsequent nilfs_get_block() then dereferences the uninitialized bmap->b_ops and jumps through it, crashing the kernel or worse. Regular files, directories, and symlinks are the only inode types with data blocks to recover; reject anything else before touching its block mapping. [ryusuke: conformed AI tag to guidelines]
Title nilfs2: reject non-regular inodes in dsync recovery
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

Sources

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