{"id":"CVE-2025-68266","published":"2025-12-16T14:47:06Z","modified":"2026-11-10T12:38:04Z","title":"bfs: Reconstruct file type when loading from disk","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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\" 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).","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00233,"percentile":0.14356,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/d0c5ec1f57d8fbb953f166a27d9d32473dc8f3e4","tags":[]},{"url":"https://git.kernel.org/stable/c/aeccd6743ee4fdd1ab8cfcbb5b9a20b613418f6d","tags":[]},{"url":"https://git.kernel.org/stable/c/8f73336b75bd3457b6f9410f2a0601a238f32238","tags":[]},{"url":"https://git.kernel.org/stable/c/a9f626396bfe66f49b743601e862767928237cc0","tags":[]},{"url":"https://git.kernel.org/stable/c/77899444d46162aeb65f229590c26ba266864223","tags":[]},{"url":"https://git.kernel.org/stable/c/a8cb796e7e2cb7971311ba236922f5e7e1be77e6","tags":[]},{"url":"https://git.kernel.org/stable/c/34ab4c75588c07cca12884f2bf6b0347c7a13872","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":2.9,"factors":[{"name":"EPSS percentile","points":2.87}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < d0c5ec1f57d8fbb953f166a27d9d32473dc8f3e4",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < aeccd6743ee4fdd1ab8cfcbb5b9a20b613418f6d",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8f73336b75bd3457b6f9410f2a0601a238f32238",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a9f626396bfe66f49b743601e862767928237cc0",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 77899444d46162aeb65f229590c26ba266864223",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a8cb796e7e2cb7971311ba236922f5e7e1be77e6",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 34ab4c75588c07cca12884f2bf6b0347c7a13872"]},{"vendor":"Linux","product":"Linux","versions":["2.6.12"]}],"euvd":{"id":"EUVD-2025-203747","exploited":false,"provenance":"source"}}