CVE-2024-35925Published May 19, 2024 · May 19Updated Oct 29
block: prevent division by zero in blk_rq_stat_sum()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ eca8b53a6769e60d6d8240d71202d73b0af81901 · < 5f7fd6aa4c4877d77133ea86c14cf256f390b2fe| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel block subsystem, adding two sample counts can overflow to zero, causing a division by zero in blk_rq_stat_sum(). The input does not establish whether an attacker can trigger this condition or specify the required access or user interaction.
Engineers running the Linux kernel should check their installations; affected versions were not provided.