CVE-2025-68266
bfs: Reconstruct file type when loading from disk
Check your servers for CVE-2025-68266
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-68266 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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).
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before d0c5ec1f57d8fbb953f166a27d9d32473dc8f3e4 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before aeccd6743ee4fdd1ab8cfcbb5b9a20b613418f6d affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 8f73336b75bd3457b6f9410f2a0601a238f32238 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before a9f626396bfe66f49b743601e862767928237cc0 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 77899444d46162aeb65f229590c26ba266864223 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before a8cb796e7e2cb7971311ba236922f5e7e1be77e6 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 34ab4c75588c07cca12884f2bf6b0347c7a13872
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 5.10.248 up to and including 5.10.* unaffected from 5.15.198 up to and including 5.15.* unaffected from 6.1.160 up to and including 6.1.* unaffected from 6.6.120 up to and including 6.6.* unaffected from 6.12.62 up to and including 6.12.* unaffected from 6.17.12 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-68266 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-68266
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-68266
trivy image --scanners vuln IMAGE | grep CVE-2025-68266
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/d0c5ec1f57d8fbb953f166a27d9d32473dc8f3e4 git.kernel.org
- https://git.kernel.org/stable/c/aeccd6743ee4fdd1ab8cfcbb5b9a20b613418f6d git.kernel.org
- https://git.kernel.org/stable/c/8f73336b75bd3457b6f9410f2a0601a238f32238 git.kernel.org
- https://git.kernel.org/stable/c/a9f626396bfe66f49b743601e862767928237cc0 git.kernel.org
- https://git.kernel.org/stable/c/77899444d46162aeb65f229590c26ba266864223 git.kernel.org
- https://git.kernel.org/stable/c/a8cb796e7e2cb7971311ba236922f5e7e1be77e6 git.kernel.org
- https://git.kernel.org/stable/c/34ab4c75588c07cca12884f2bf6b0347c7a13872 git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
Source: the record CVE-2025-68266 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse