CVE-2024-35925

block: prevent division by zero in blk_rq_stat_sum()

State
Published
Severity
Not scored
Published
May 19, 2024
Updated
Oct 15, 2026
Reserved
May 17, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • eca8b53a6769e60d6d8240d71202d73b0af81901 to before 6a55dab4ac956deb23690eedd74e70b892a378e7Affected
  • eca8b53a6769e60d6d8240d71202d73b0af81901 to before edd073c78d2bf48c5b8bf435bbc3d61d6e7c6c14Affected
  • eca8b53a6769e60d6d8240d71202d73b0af81901 to before b0cb5564c3e8e0ee0a2d28c86fa7f02e82d64c3cAffected
  • eca8b53a6769e60d6d8240d71202d73b0af81901 to before 21e7d72d0cfcbae6042d498ea2e6f395311767f8Affected
  • eca8b53a6769e60d6d8240d71202d73b0af81901 to before 512a01da7134bac8f8b373506011e8aaa3283854Affected
  • eca8b53a6769e60d6d8240d71202d73b0af81901 to before 5f7fd6aa4c4877d77133ea86c14cf256f390b2feAffected
  • eca8b53a6769e60d6d8240d71202d73b0af81901 to before 98ddf2604ade2d954bf5ec193600d5274a43fd68Affected
  • eca8b53a6769e60d6d8240d71202d73b0af81901 to before 93f52fbeaf4b676b21acfe42a5152620e6770d02Affected
LinuxLinux
  • 4.15Affected
  • before 4.15Not affected
  • 4.19.312 through 4.19.*Not affected
  • 5.4.274 through 5.4.*Not affected
  • 5.10.215 through 5.10.*Not affected
  • 5.15.155 through 5.15.*Not affected
  • 6.1.86 through 6.1.*Not affected
  • 6.6.27 through 6.6.*Not affected
  • 6.8.6 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.