{"id":"CVE-2025-68266","title":"bfs: Reconstruct file type when loading from disk","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbfs: Reconstruct file type when loading from disk\n\nsyzbot is reporting that S_IFMT bits of inode->i_mode can become bogus when\nthe S_IFMT bits of the 32bits \"mode\" fiel…","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < d0c5ec1f57d8fbb953f166a27d9d32473dc8f3e4","Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < aeccd6743ee4fdd1ab8cfcbb5b9a20b613418f6d","Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 8f73336b75bd3457b6f9410f2a0601a238f32238","Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < a9f626396bfe66f49b743601e862767928237cc0","Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 77899444d46162aeb65f229590c26ba266864223","Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < a8cb796e7e2cb7971311ba236922f5e7e1be77e6","Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 34ab4c75588c07cca12884f2bf6b0347c7a13872","Linux 2.6.12"],"published":"2025-12-16","updated":"2026-09-08","sourceUpdated":"2026-09-08T08:43:10.160Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-68266","references":[{"url":"https://git.kernel.org/stable/c/d0c5ec1f57d8fbb953f166a27d9d32473dc8f3e4"},{"url":"https://git.kernel.org/stable/c/aeccd6743ee4fdd1ab8cfcbb5b9a20b613418f6d"},{"url":"https://git.kernel.org/stable/c/8f73336b75bd3457b6f9410f2a0601a238f32238"},{"url":"https://git.kernel.org/stable/c/a9f626396bfe66f49b743601e862767928237cc0"},{"url":"https://git.kernel.org/stable/c/77899444d46162aeb65f229590c26ba266864223"},{"url":"https://git.kernel.org/stable/c/a8cb796e7e2cb7971311ba236922f5e7e1be77e6"},{"url":"https://git.kernel.org/stable/c/34ab4c75588c07cca12884f2bf6b0347c7a13872"}],"tags":["cve.org"],"epss":0.00197,"epssPercentile":0.09739,"ingestedAt":"2026-09-08T15:33:26.996Z","slug":"CVE-2025-68266","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nbfs: Reconstruct file type when loading from disk\n\nsyzbot is reporting that S_IFMT bits of inode->i_mode can become bogus when\nthe S_IFMT bits of the 32bits \"mode\" field loaded from disk are corrupted\nor when the 32bits \"attributes\" field loaded from disk are corrupted.\n\nA documentation says that BFS uses only lower 9 bits of the \"mode\" field.\nBut I can't find an explicit explanation that the unused upper 23 bits\n(especially, the S_IFMT bits) are initialized with 0.\n\nTherefore, ignore the S_IFMT bits of the \"mode\" field loaded from disk.\nAlso, verify that the value of the \"attributes\" field loaded from disk is\neither BFS_VREG or BFS_VDIR (because BFS supports only regular files and\nthe root directory).\n\n## Affected\n\n- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < d0c5ec1f57d8fbb953f166a27d9d32473dc8f3e4`\n- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < aeccd6743ee4fdd1ab8cfcbb5b9a20b613418f6d`\n- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 8f73336b75bd3457b6f9410f2a0601a238f32238`\n- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < a9f626396bfe66f49b743601e862767928237cc0`\n- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 77899444d46162aeb65f229590c26ba266864223`\n- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < a8cb796e7e2cb7971311ba236922f5e7e1be77e6`\n- `Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 34ab4c75588c07cca12884f2bf6b0347c7a13872`\n- `Linux 2.6.12`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}