erofs: avoid infinite loops due to corrupted subpage compact indexes

Summary

CVECVE-2025-68251
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-12-16 15:15:54 UTC
Updated2026-04-15 00:35:42 UTC
DescriptionIn 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()`.

Risk And Classification

EPSS: 0.000240000 probability, percentile 0.071420000 (date 2026-05-28)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 8d2517aaeea3ab8651bb517bca8f3c8664d318ea dbfac1b85d0753996ddfef636934d431b588dd1f git Not specified
CNA Linux Linux affected 8d2517aaeea3ab8651bb517bca8f3c8664d318ea 8675447a8794983f2b7e694b378112772c17635e git Not specified
CNA Linux Linux affected 8d2517aaeea3ab8651bb517bca8f3c8664d318ea e13d315ae077bb7c3c6027cc292401bc0f4ec683 git Not specified
CNA Linux Linux affected 3f691aa676f29586e83e6c032713554a290418c3 git Not specified
CNA Linux Linux affected 22438a34d383ec2789eaf450728e38abc53051f8 git Not specified
CNA Linux Linux affected 6.8 Not specified
CNA Linux Linux unaffected 6.8 semver Not specified
CNA Linux Linux unaffected 6.12.91 6.12.* semver Not specified
CNA Linux Linux unaffected 6.17.6 6.17.* semver Not specified
CNA Linux Linux unaffected 6.18 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/dbfac1b85d0753996ddfef636934d431b588dd1f https://git.kernel.org/stable/c/dbfac1b85d0753996ddfef636934d431b588dd1f git.kernel.org
git.kernel.org/stable/c/8675447a8794983f2b7e694b378112772c17635e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e13d315ae077bb7c3c6027cc292401bc0f4ec683 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report