Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139473

nilfs2: reject non-regular inodes in dsync recovery

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]

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to < b3a8ac3702513eec801e05a5c38b0a2c010f2deaaffected
  • 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to < 5dc45e0b97f929dff0775168b6d922fca5bdaa6caffected
  • 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to < 116cbc35936dd8cbcc41e31727495e1d478e8078affected
  • 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to < e6ace321042683d89ab3c9a74441c0e4d33839f5affected
  • 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to < 6865d962e88aaaecd95c8657cbdb0a0b04f193adaffected
  • 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to < 2675fef9b313902fd9b9793aa4527c5ab7300237affected
  • 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to < 1c68f5db93328fb956ae77df5bc9deb219f0186daffected
  • 0f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b to < ef2ccb1554df254eb4066171ce93e6d5fb1af2e3affected

Linux Linux

Default version status: affected

  • 2.6.30affected
  • 0 to < 2.6.30unaffected
  • 5.10.275 to ≤ 5.10.*unaffected
  • 5.15.226 to ≤ 5.15.*unaffected
  • 6.1.193 to ≤ 6.1.*unaffected
  • 6.6.163 to ≤ 6.6.*unaffected
  • 6.12.119 to ≤ 6.12.*unaffected
  • 6.18.65 to ≤ 6.18.*unaffected
  • 7.3.6 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References