Not scored
bfs: Reconstruct file type when loading from disk
- Severity
- Not scored
- Exploit likelihood
- 0.23% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d0c5ec1f57d8fbb953f166a27d9d32473dc8f3e4, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before aeccd6743ee4fdd1ab8cfcbb5b9a20b613418f6d, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 8f73336b75bd3457b6f9410f2a0601a238f32238, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a9f626396bfe66f49b743601e862767928237cc0, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 77899444d46162aeb65f229590c26ba266864223, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a8cb796e7e2cb7971311ba236922f5e7e1be77e6, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 34ab4c75588c07cca12884f2bf6b0347c7a13872, 2.6.12 Not affected: before 2.6.12, from 5.10.248 up to 5.10.*, from 5.15.198 up to 5.15.*, from 6.1.160 up to 6.1.*, from 6.6.120 up to 6.6.*, from 6.12.62 up to 6.12.* | CVE List |
What each source says
CVE List
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).
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: bfs: Reconstruir el tipo de archivo al cargar desde el disco syzbot informa que los bits S_IFMT de inode -> i_mode pueden volverse erróneos cuando los bits S_IFMT del campo 'mode' de 32 bits cargado desde el disco están corruptos o cuando el campo 'attributes' de 32 bits cargado desde el disco está corrupto. Una documentación dice que BFS usa solo los 9 bits inferiores del campo 'mode'. Pero no puedo encontrar una explicación explícita de que los 23 bits superiores no utilizados (especialmente, los bits S_IFMT) se inicialicen con 0. Por lo tanto, ignorar los bits S_IFMT del campo 'mode' cargado desde el disco. Además, verificar que el valor del campo 'attributes' cargado desde el disco sea BFS_VREG o BFS_VDIR (porque BFS solo admite archivos regulares y el directorio raíz).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68266 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2025-68266 changed 2026-11-10 | Public domain |