{"id":"CVE-2025-68266","aliases":["CVE-2025-68266"],"related":[],"kind":"vulnerability","state":"published","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\" 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).","summarySource":"cvelist","descriptions":[{"lang":"en","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).","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nbfs: Reconstruir el tipo de archivo al cargar desde el disco\n\nsyzbot 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.\n\nUna 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.\n\nPor 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).","source":"nvd"}],"published":"2025-12-16T14:47:06.240Z","modified":"2026-11-10T13:17:57.610Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"d0c5ec1f57d8fbb953f166a27d9d32473dc8f3e4","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"aeccd6743ee4fdd1ab8cfcbb5b9a20b613418f6d","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"8f73336b75bd3457b6f9410f2a0601a238f32238","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"a9f626396bfe66f49b743601e862767928237cc0","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"77899444d46162aeb65f229590c26ba266864223","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"a8cb796e7e2cb7971311ba236922f5e7e1be77e6","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"34ab4c75588c07cca12884f2bf6b0347c7a13872","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"5.10.248","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.198","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.160","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.120","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.62","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.12","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/d0c5ec1f57d8fbb953f166a27d9d32473dc8f3e4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aeccd6743ee4fdd1ab8cfcbb5b9a20b613418f6d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f73336b75bd3457b6f9410f2a0601a238f32238","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a9f626396bfe66f49b743601e862767928237cc0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/77899444d46162aeb65f229590c26ba266864223","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a8cb796e7e2cb7971311ba236922f5e7e1be77e6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34ab4c75588c07cca12884f2bf6b0347c7a13872","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68266","url":"https://www.cve.org/CVERecord?id=CVE-2025-68266","licence":"CVE Terms of Use","modified":"2026-11-10T12:38:04.078Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68266","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68266","licence":"Public domain","modified":"2026-11-10T13:17:57.610Z"}],"updatedAt":"2026-11-25T22:59:09.520Z","epss":{"score":0.00234,"percentile":0.1536,"date":"2026-12-01T12:00:22.000Z"}}