CVE Catalog

CVE-2025-68266

Low risk· EPSS 6%
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.16%

6th percentile - higher than 6% of all known CVEs

Summary

In the Linux kernel, a vulnerability in the BFS filesystem was found where the S_IFMT bits of inode->i_mode can become corrupted when loading from disk. This is due to uninitialized upper 23 bits of the 'mode' field and lack of validation of the 'attributes' field, potentially leading to incorrect file type detection.

Risk Assessment

The risk involves potential errors in BFS filesystem operation, leading to incorrect file type identification and possibly causing system crashes or data integrity issues.

Recommendation

It is recommended to immediately update the Linux kernel to a version containing the fix, which ignores the S_IFMT bits from the 'mode' field and validates the 'attributes' field against allowed values (BFS_VREG or BFS_VDIR).

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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).

Vulnerability data from NVD (NIST) · CISA KEV · EPSS