5.5medium
ext4: avoid allocate block from corrupted group in ext4_mb_find_by_goal()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.12% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ext4: avoid allocate block from corrupted group in ext4_mb_find_by_goal() There's issue as follows: ... EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 206 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 206 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 206 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 206 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 2243 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 2239 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): error count since last fsck: 1 EXT4-fs (mmcblk0p1): initial error at time 1765597433: ext4_mb_generate_buddy:760 EXT4-fs (mmcblk0p1): last error at time 1765597433: ext4_mb_generate_buddy:760 ... According to the log analysis, blocks are always requested from the corrupted block group. This may happen as follows: ext4_mb_find_by_goal ext4_mb_load_buddy ext4_mb_load_buddy_gfp ext4_mb_init_cache ext4_read_block_bitmap_nowait ext4_wait_block_bitmap ext4_validate_block_bitmap if (!grp || EXT4_MB_GRP_BBITMAP_CORRUPT(grp)) return -EFSCORRUPTED; // There's no logs. if (err) return err; // Will return error ext4_lock_group(ac->ac_sb, group); if (unlikely(EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info))) // Unreachable goto out; After commit 9008a58e5dce ("ext4: make the bitmap read routines return real error codes") merged, Commit 163a203ddb36 ("ext4: mark block group as corrupt on block bitmap error") is no real solution for allocating blocks from corrupted block groups. This is because if 'EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info)' is true, then 'ext4_mb_load_buddy()' may return an error. This means that the block allocation will fail. Therefore, check block group if corrupted when ext4_mb_load_buddy() returns error.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 163a203ddb36c36d4a1c942aececda0cc8d06aa7 before fea6b2e250ff48f10d166011b57a8516ae5438c9, from 163a203ddb36c36d4a1c942aececda0cc8d06aa7 before 0b84571c886719823d537f05f4f07cad6357c4b7, from 163a203ddb36c36d4a1c942aececda0cc8d06aa7 before ffc0a282462d45fee5957621be5afa29752f3b6d, from 163a203ddb36c36d4a1c942aececda0cc8d06aa7 before 2d31a5073f86a177edf44015e0dedb0c47cfd6d8, from 163a203ddb36c36d4a1c942aececda0cc8d06aa7 before 9370207b36d26e45a8c8ef0500706d37036edd6b, from 163a203ddb36c36d4a1c942aececda0cc8d06aa7 before 1895f7904be71c48f1e6f338b28f24dabd6b8aeb, from 163a203ddb36c36d4a1c942aececda0cc8d06aa7 before 1c0d7c4cde38a887c6d74e0c89ddb25226943c78, from 163a203ddb36c36d4a1c942aececda0cc8d06aa7 before 46066e3a06647c5b186cc6334409722622d05c44 and 1 more Not affected: before 3.12, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.168 up to 6.1.*, from 6.6.131 up to 6.6.*, from 6.12.80 up to 6.12.* | CVE List |
| linux linux_kernel | from 3.12 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.168, from 6.2 before 6.6.131, from 6.7 before 6.12.80, from 6.13 before 6.18.21, from 6.19 before 6.19.11, 7.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: ext4: avoid allocate block from corrupted group in ext4_mb_find_by_goal() There's issue as follows: ... EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 206 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 206 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 206 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 206 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 2243 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): Delayed block allocation failed for inode 2239 at logical offset 0 with max blocks 1 with error 117 EXT4-fs (mmcblk0p1): This should not happen!! Data will be lost EXT4-fs (mmcblk0p1): error count since last fsck: 1 EXT4-fs (mmcblk0p1): initial error at time 1765597433: ext4_mb_generate_buddy:760 EXT4-fs (mmcblk0p1): last error at time 1765597433: ext4_mb_generate_buddy:760 ... According to the log analysis, blocks are always requested from the corrupted block group. This may happen as follows: ext4_mb_find_by_goal ext4_mb_load_buddy ext4_mb_load_buddy_gfp ext4_mb_init_cache ext4_read_block_bitmap_nowait ext4_wait_block_bitmap ext4_validate_block_bitmap if (!grp || EXT4_MB_GRP_BBITMAP_CORRUPT(grp)) return -EFSCORRUPTED; // There's no logs. if (err) return err; // Will return error ext4_lock_group(ac->ac_sb, group); if (unlikely(EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info))) // Unreachable goto out; After commit 9008a58e5dce ("ext4: make the bitmap read routines return real error codes") merged, Commit 163a203ddb36 ("ext4: mark block group as corrupt on block bitmap error") is no real solution for allocating blocks from corrupted block groups. This is because if 'EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info)' is true, then 'ext4_mb_load_buddy()' may return an error. This means that the block allocation will fail. Therefore, check block group if corrupted when ext4_mb_load_buddy() returns error.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ext4: evitar asignar bloque de grupo corrupto en ext4_mb_find_by_goal() Hay un problema como sigue: ... EXT4-fs (mmcblk0p1): Falló la asignación de bloque retrasada para el inodo 206 en el desplazamiento lógico 0 con un máximo de bloques 1 con error 117 EXT4-fs (mmcblk0p1): ¡¡Esto no debería ocurrir!! Se perderán datos EXT4-fs (mmcblk0p1): Falló la asignación de bloque retrasada para el inodo 206 en el desplazamiento lógico 0 con un máximo de bloques 1 con error 117 EXT4-fs (mmcblk0p1): ¡¡Esto no debería ocurrir!! Se perderán datos EXT4-fs (mmcblk0p1): Falló la asignación de bloque retrasada para el inodo 206 en el desplazamiento lógico 0 con un máximo de bloques 1 con error 117 EXT4-fs (mmcblk0p1): ¡¡Esto no debería ocurrir!! Se perderán datos EXT4-fs (mmcblk0p1): Falló la asignación de bloque retrasada para el inodo 206 en el desplazamiento lógico 0 con un máximo de bloques 1 con error 117 EXT4-fs (mmcblk0p1): ¡¡Esto no debería ocurrir!! Se perderán datos EXT4-fs (mmcblk0p1): Falló la asignación de bloque retrasada para el inodo 2243 en el desplazamiento lógico 0 con un máximo de bloques 1 con error 117 EXT4-fs (mmcblk0p1): ¡¡Esto no debería ocurrir!! Se perderán datos EXT4-fs (mmcblk0p1): Falló la asignación de bloque retrasada para el inodo 2239 en el desplazamiento lógico 0 con un máximo de bloques 1 con error 117 EXT4-fs (mmcblk0p1): ¡¡Esto no debería ocurrir!! Se perderán datos EXT4-fs (mmcblk0p1): recuento de errores desde el último fsck: 1 EXT4-fs (mmcblk0p1): error inicial en el momento 1765597433: ext4_mb_generate_buddy:760 EXT4-fs (mmcblk0p1): último error en el momento 1765597433: ext4_mb_generate_buddy:760 ... Según el análisis del registro, los bloques siempre se solicitan del grupo de bloques corrupto. Esto puede ocurrir de la siguiente manera: ext4_mb_find_by_goal ext4_mb_load_buddy ext4_mb_load_buddy_gfp ext4_mb_init_cache ext4_read_block_bitmap_nowait ext4_wait_block_bitmap ext4_validate_block_bitmap si (!grp || EXT4_MB_GRP_BBITMAP_CORRUPT(grp)) retornar -EFSCORRUPTED; // No hay registros. si (err) retornar err; // Retornará error ext4_lock_group(ac -> ac_sb, group); si (unlikely(EXT4_MB_GRP_BBITMAP_CORRUPT(e4b -> bd_info))) // Inalcanzable ir a out; Después de que el commit 9008a58e5dce (’ext4: hacer que las rutinas de lectura de bitmap devuelvan códigos de error reales’) se fusionara, el Commit 163a203ddb36 (’ext4: marcar el grupo de bloques como corrupto en caso de error de bitmap de bloque’) no es una solución real para asignar bloques de grupos de bloques corruptos. Esto se debe a que si ’EXT4_MB_GRP_BBITMAP_CORRUPT(e4b -> bd_info)’ es verdadero, entonces ’ext4_mb_load_buddy()’ puede devolver un error. Esto significa que la asignación de bloques fallará. Por lo tanto, verificar el grupo de bloques si está corrupto cuando ext4_mb_load_buddy() devuelve un error.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43068 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-43068 changed 2026-11-11 | Public domain |