Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6307132FA3A for ; Tue, 16 Dec 2025 14:47:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765896434; cv=none; b=NIrse5gqktAPdWAsJIPcuU7p15qtzMerIZtj5CyMq1AFsSpWEm6joaUMN9aEjf5peAVH+b9XZ6Wnl8EcklO7rdOQ+lM/HGENBbogRrOp4gI/eNVUuaqnP7Q+qgLmS0anVoNVfT7v4kTEdE4/uAESYADNTyqIRdg8Pjze3KeXr4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765896434; c=relaxed/simple; bh=L4hOsb5IA5GJWslDm6csHuYVwRXsEZqFGDW91bN9JYo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h4i8W/9atuqbdRySZlVo7dN/y7/8XFevwrZi3oa84vaWYutxEXLAwYzLiOxSh9a5KdexSZf0v6TxMu52k3XGo0kUsCKWo2rxw4OE6YErlrHrBy5nY6essiHqk9hNxa3J48e4fpGogHfo3f3YjjpXtQ+nCnCu7xi+YJCnwqCnY6M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ux+r9wZO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ux+r9wZO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2867DC4CEF1; Tue, 16 Dec 2025 14:47:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765896433; bh=L4hOsb5IA5GJWslDm6csHuYVwRXsEZqFGDW91bN9JYo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Ux+r9wZO7zfD2LBK2YAYX2THh+EyzykBMmw1h84VEne6lEVtMUA09S2MsmCy7I46r /Z31KeZjPd7JyCBp3VUL2OjtFPi8n79wUWWfi1xc+SaqKgKspXe2s/V2zve3xBBjO6 fuAfgCW58csjHm70GXifbrLijVcxtqW3XEM39jmU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68266: bfs: Reconstruct file type when loading from disk Date: Tue, 16 Dec 2025 15:47:11 +0100 Message-ID: <2025121609-CVE-2025-68266-d334@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2402; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yBfVCJNIW1m8MATfqRrJt3RNkSNCwibA1VTipZp7zD8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOBW+PqUTpSaZo3rgz++P551KSMQ3n/rf7WnRna3F9i k3bmbK0I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbC945hfmrdonVzmTdHq6wy 4qhd7NB77+HzaQzzzFLe/jXdKl9vU9v9VNJYKXDmwowrAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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). The Linux kernel CVE team has assigned CVE-2025-68266 to this issue. Affected and fixed versions =========================== Fixed in 6.12.62 with commit 77899444d46162aeb65f229590c26ba266864223 Fixed in 6.17.12 with commit a8cb796e7e2cb7971311ba236922f5e7e1be77e6 Fixed in 6.18 with commit 34ab4c75588c07cca12884f2bf6b0347c7a13872 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-68266 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/bfs/inode.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/77899444d46162aeb65f229590c26ba266864223 https://git.kernel.org/stable/c/a8cb796e7e2cb7971311ba236922f5e7e1be77e6 https://git.kernel.org/stable/c/34ab4c75588c07cca12884f2bf6b0347c7a13872