CVE-2025-68266

bfs: Reconstruct file type when loading from disk

State
Published
Severity
Not scored
Published
Dec 16, 2025
Updated
Oct 15, 2026
Reserved
Dec 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

bfs: Reconstruct file type when loading from disk

syzbot is reporting that S_IFMT bits of inode->i_mode can become bogus when the S_IFMT bits of the 32bits "mode" field loaded from disk are corrupted or when the 32bits "attributes" field loaded from disk are corrupted.

A documentation says that BFS uses only lower 9 bits of the "mode" field. But I can't find an explicit explanation that the unused upper 23 bits (especially, the S_IFMT bits) are initialized with 0.

Therefore, ignore the S_IFMT bits of the "mode" field loaded from disk. Also, verify that the value of the "attributes" field loaded from disk is either BFS_VREG or BFS_VDIR (because BFS supports only regular files and the root directory).

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before d0c5ec1f57d8fbb953f166a27d9d32473dc8f3e4Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before aeccd6743ee4fdd1ab8cfcbb5b9a20b613418f6dAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8f73336b75bd3457b6f9410f2a0601a238f32238Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before a9f626396bfe66f49b743601e862767928237cc0Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 77899444d46162aeb65f229590c26ba266864223Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before a8cb796e7e2cb7971311ba236922f5e7e1be77e6Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 34ab4c75588c07cca12884f2bf6b0347c7a13872Affected
LinuxLinux
  • 2.6.12Affected
  • before 2.6.12Not affected
  • 5.10.248 through 5.10.*Not affected
  • 5.15.198 through 5.15.*Not affected
  • 6.1.160 through 6.1.*Not affected
  • 6.6.120 through 6.6.*Not affected
  • 6.12.62 through 6.12.*Not affected
  • 6.17.12 through 6.17.*Not affected
  • 6.18 and laterNot affected

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.