In the Linux kernel, the following vulnerability has been resolved:
block: prevent division by zero in blk_rq_stat_sum()
The expression dst->nr_samples + src->nr_samples may have zero value on overflow. It is necessary to add a check to avoid division by zero.
Found by Linux Verification Center (linuxtesting.org) with Svace.
| Software | From | Fixed in |
|---|---|---|
| linux / linux_kernel | 5.5 | 5.10.215 |
| linux / linux_kernel | 6.2 | 6.6.27 |
| linux / linux_kernel | 4.20 | 5.4.274 |
| linux / linux_kernel | 6.7 | 6.8.6 |
| linux / linux_kernel | 5.16 | 6.1.86 |
| linux / linux_kernel | 5.11 | 5.15.155 |
| linux / linux_kernel | - | 4.19.312 |
| debian / debian_linux | 10.0 | 10.0.x |