What’s Vulnerable › Vulnerabilities

CVE-2024-35925: block: prevent division by zero in blk_rq_stat_sum()

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.19.312, 5.10.215, 5.15.155, 5.4.274. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-35925 or the next vulnerability affects your stack