Junglewise Threat Intelligence

CVE-2025-68266: Linux Kernel BFS file type reconstruction error in inode loading

CVE-2025-68266 · Severity: info · CVSS 0 · Published 2025-12-16

Technologies: Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP. Vendors: Siemens, Linux.

Executive brief

A vulnerability was identified in the Linux kernel's Boot File System (BFS) driver where it failed to properly validate file type information when reading data from a disk. This could allow a corrupted or malicious disk image to cause the system to process incorrect file attributes, potentially leading to unexpected system behavior or crashes. The issue primarily affects legacy systems or specialized industrial hardware using this specific file system format.

Technical details

A vulnerability in the Linux kernel BFS (Boot File System) driver exists because the `bfs_iget` function in `fs/bfs/inode.c` does not properly mask or validate the `i_mode` and `i_vtype` fields when reading from disk. Specifically, the driver was trusting the upper bits of the 32-bit mode field, which are not explicitly defined in BFS documentation and can contain garbage or corrupted data. An attacker with the ability to mount a specially crafted BFS filesystem could trigger this by providing corrupted S_IFMT bits. The fix involves ignoring the S_IFMT bits from the disk's mode field and instead reconstructing the file type based on a validated `i_vtype` (ensuring it is either a regular file or a directory).

Affected products

  • Linux Linux All versions prior to 6.13-rc1
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.6 and later

Timeline

  • 2025-10-23: other: Patch authored by Tetsuo Handa
  • 2025-12-16: disclosed: CVE published

References

Related threats