[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025121609-CVE-2025-68266-d334@gregkh>
Date: Tue, 16 Dec 2025 15:47:11 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-68266: bfs: Reconstruct file type when loading from disk
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists