Medium · published May 1, 2024
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix to avoid potential panic during recovery
During recovery, if FAULT_BLOCK is on, it is possible that
f2fs_reserve_new_block() will return -ENOSPC during recovery,
then it may trigger panic.
Also, if fault injection rate is 1 and only FAULT_BLOCK fault
type is on, it may encounter deadloop in loop of block reservation.
Let's change as below to fix these issues:
- remove bug_on() to avoid panic.
- limit the loop count of block reservation to avoid potential
deadloop.
| Product | Versions | Fixed in |
|---|---|---|
| linux/linux_kernel | ≥ 4.19.307, < 4.20 | 4.20 |
| linux/linux_kernel | ≥ 5.4.269, < 5.5 | 5.5 |
| linux/linux_kernel | ≥ 5.10.210, < 5.11 | 5.11 |
| linux/linux_kernel | ≥ 5.15.149, < 5.16 | 5.16 |
| linux/linux_kernel | ≥ 6.1.77, < 6.1.83 | 6.1.83 |
| linux/linux_kernel | ≥ 6.6.16, < 6.6.23 | 6.6.23 |
| linux/linux_kernel | ≥ 6.7.4, < 6.7.11 | 6.7.11 |
| linux/linux_kernel | ≥ 6.8, < 6.8.2 | 6.8.2 |