Not scored
erofs: avoid infinite loops due to corrupted subpage compact indexes
- Severity
- Not scored
- Exploit likelihood
- 0.23% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 3f691aa676f29586e83e6c032713554a290418c3 before b18a82503a67a530d48f5a5b429e162749fe2c89, from 8d2517aaeea3ab8651bb517bca8f3c8664d318ea before dbfac1b85d0753996ddfef636934d431b588dd1f, from 8d2517aaeea3ab8651bb517bca8f3c8664d318ea before 8675447a8794983f2b7e694b378112772c17635e, from 8d2517aaeea3ab8651bb517bca8f3c8664d318ea before e13d315ae077bb7c3c6027cc292401bc0f4ec683, 22438a34d383ec2789eaf450728e38abc53051f8, from 6.6.16 before 6.6.160, from 6.7.4 before 6.8, 6.8 Not affected: before 6.8, from 6.6.160 up to 6.6.*, from 6.12.91 up to 6.12.*, from 6.17.6 up to 6.17.*, from 6.18 up to * | CVE List |
What each source says
CVE List
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()`.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: erofs: evitar bucles infinitos debido a índices compactos de subpágina corruptos Robert informó de un bucle infinito observado en dos imágenes manipuladas. La causa raíz es que 'clusterofs' puede ser mayor que 'lclustersize' para 'lclusters' !NONHEAD en índices compactos de subpágina corruptos, p. ej.: blocksize = lclustersize = 512 lcn = 6 clusterofs = 515 Mover la comprobación correspondiente para índices de compresión completos a 'z_erofs_load_lcluster_from_disk()' para cubrir también los índices de compresión compactos de subpágina. También corrige la posición de la comprobación 'm -> type >= Z_EROFS_LCLUSTER_TYPE_MAX', ya que debería colocarse justo después de 'z_erofs_load_{compact,full}_lcluster()'.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68251 changed 2026-10-21 | CVE Terms of Use |
| NVD | CVE-2025-68251 changed 2026-10-21 | Public domain |