nilfs2: reject non-regular inodes in dsync recovery

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: 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]

ProductVersions
Linux Linux0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to before b3a8ac3702513eec801e05a5c38b0a2c010f2dea Affected0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to before 5dc45e0b97f929dff0775168b6d922fca5bdaa6c Affected0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to before 116cbc35936dd8cbcc41e31727495e1d478e8078 Affected0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to before e6ace321042683d89ab3c9a74441c0e4d33839f5 Affected0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to before 6865d962e88aaaecd95c8657cbdb0a0b04f193ad Affected0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to before 2675fef9b313902fd9b9793aa4527c5ab7300237 Affected0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to before 1c68f5db93328fb956ae77df5bc9deb219f0186d Affected0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to before ef2ccb1554df254eb4066171ce93e6d5fb1af2e3 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.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 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.