CVE-2025-68251
erofs: avoid infinite loops due to corrupted subpage compact indexes
Check your servers for CVE-2025-68251
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-68251 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:
erofs: avoid infinite loops due to corrupted subpage compact indexes
Robert reported an infinite loop observed by two crafted images.
The root cause is that `clusterofs` can be larger than `lclustersize` for !NONHEAD `lclusters` in corrupted subpage compact indexes, e.g.:
blocksize = lclustersize = 512 lcn = 6 clusterofs = 515
Move the corresponding check for full compress indexes to `z_erofs_load_lcluster_from_disk()` to also cover subpage compact compress indexes.
It also fixes the position of `m->type >= Z_EROFS_LCLUSTER_TYPE_MAX` check, since it should be placed right after `z_erofs_load_{compact,full}_lcluster()`.
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 14.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3f691aa676f29586e83e6c032713554a290418c3, before b18a82503a67a530d48f5a5b429e162749fe2c89 affected from 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, before dbfac1b85d0753996ddfef636934d431b588dd1f affected from 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, before 8675447a8794983f2b7e694b378112772c17635e affected from 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, before e13d315ae077bb7c3c6027cc292401bc0f4ec683 affected 22438a34d383ec2789eaf450728e38abc53051f8 affected from 6.6.16, before 6.6.160 affected from 6.7.4, before 6.8
Other versions: unaffected
|
| Linux |
affected 6.8 unaffected before 6.8 unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.91 up to and including 6.12.* unaffected from 6.17.6 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-68251 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-68251
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-68251
trivy image --scanners vuln IMAGE | grep CVE-2025-68251
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/b18a82503a67a530d48f5a5b429e162749fe2c89 git.kernel.org
- https://git.kernel.org/stable/c/dbfac1b85d0753996ddfef636934d431b588dd1f git.kernel.org
- https://git.kernel.org/stable/c/8675447a8794983f2b7e694b378112772c17635e git.kernel.org
- https://git.kernel.org/stable/c/e13d315ae077bb7c3c6027cc292401bc0f4ec683 git.kernel.org
Source: the record CVE-2025-68251 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