CVE-2025-68251
erofs: avoid infinite loops due to corrupted subpage compact indexes
Mitigation
- Upgrade Linux to 6.8 or later.
Who should check
- Anyone running Linux >= 3f691aa676f29586e83e6c032713554a290418c3, < b18a82503a67a530d48f5a5b429e162749fe2c89; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < dbfac1b85d0753996ddfef636934d431b588dd1f; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < 8675447a8794983f2b7e694b378112772c17635e; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < e13d315ae077bb7c3c6027cc292401bc0f4ec683; 22438a34d383ec2789eaf450728e38abc53051f8; >= 6.6.16, < 6.6.160; >= 6.7.4, < 6.8
- Anyone running Linux 6.8
Vulnerability facts
- Affected
- Linux >= 3f691aa676f29586e83e6c032713554a290418c3, < b18a82503a67a530d48f5a5b429e162749fe2c89; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < dbfac1b85d0753996ddfef636934d431b588dd1f; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < 8675447a8794983f2b7e694b378112772c17635e; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < e13d315ae077bb7c3c6027cc292401bc0f4ec683; 22438a34d383ec2789eaf450728e38abc53051f8; >= 6.6.16, < 6.6.160; >= 6.7.4, < 6.8; Linux 6.8
- Fixed in
- Linux 8675447a8794983f2b7e694b378112772c17635e, Linux 6.6.160, Linux 6.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- Modified
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()`.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 3f691aa676f29586e83e6c032713554a290418c3, < b18a82503a67a530d48f5a5b429e162749fe2c89; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < dbfac1b85d0753996ddfef636934d431b588dd1f; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < 8675447a8794983f2b7e694b378112772c17635e; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < e13d315ae077bb7c3c6027cc292401bc0f4ec683; 22438a34d383ec2789eaf450728e38abc53051f8; >= 6.6.16, < 6.6.160; >= 6.7.4, < 6.8 | — | cvelist |
| Linux | 6.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-68251. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-68251.md Affected: Linux >= 3f691aa676f29586e83e6c032713554a290418c3, < b18a82503a67a530d48f5a5b429e162749fe2c89; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < dbfac1b85d0753996ddfef636934d431b588dd1f; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < 8675447a8794983f2b7e694b378112772c17635e; >= 8d2517aaeea3ab8651bb517… Fixed in: Linux 8675447a8794983f2b7e694b378112772c17635e, Linux 6.6.160, Linux 6.8 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2025-68251 being exploited?
There is no confirmed exploitation: CVE-2025-68251 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-68251?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2025-68251?
Linux >= 3f691aa676f29586e83e6c032713554a290418c3, < b18a82503a67a530d48f5a5b429e162749fe2c89; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < dbfac1b85d0753996ddfef636934d431b588dd1f; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < 8675447a8794983f2b7e694b378112772c17635e; >= 8d2517aaeea3ab8651bb517bca8f3c8664d318ea, < e13d315ae077bb7c3c6027cc292401bc0f4ec683; 22438a34d383ec2789eaf450728e38abc53051f8; >= 6.6.16, < 6.6.160; >= 6.7.4, < 6.8; Linux 6.8.
Is there a fix for CVE-2025-68251?
Yes. Fixed in Linux 8675447a8794983f2b7e694b378112772c17635e, Linux 6.6.160, Linux 6.8. Upgrade Linux to 6.8 or later.
How do I check if I'm affected by CVE-2025-68251?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.