CVE-2024-35925
JSON

5.5medium

block: prevent division by zero in blk_rq_stat_sum()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.32% (higher than 18% of CVEs)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom eca8b53a6769e60d6d8240d71202d73b0af81901 before 6a55dab4ac956deb23690eedd74e70b892a378e7, from eca8b53a6769e60d6d8240d71202d73b0af81901 before edd073c78d2bf48c5b8bf435bbc3d61d6e7c6c14, from eca8b53a6769e60d6d8240d71202d73b0af81901 before b0cb5564c3e8e0ee0a2d28c86fa7f02e82d64c3c, from eca8b53a6769e60d6d8240d71202d73b0af81901 before 21e7d72d0cfcbae6042d498ea2e6f395311767f8, from eca8b53a6769e60d6d8240d71202d73b0af81901 before 512a01da7134bac8f8b373506011e8aaa3283854, from eca8b53a6769e60d6d8240d71202d73b0af81901 before 5f7fd6aa4c4877d77133ea86c14cf256f390b2fe, from eca8b53a6769e60d6d8240d71202d73b0af81901 before 98ddf2604ade2d954bf5ec193600d5274a43fd68, from eca8b53a6769e60d6d8240d71202d73b0af81901 before 93f52fbeaf4b676b21acfe42a5152620e6770d02 and 1 more
Not affected: before 4.15, from 4.19.312 up to 4.19.*, from 5.4.274 up to 5.4.*, from 5.10.215 up to 5.10.*, from 5.15.155 up to 5.15.*, from 6.1.86 up to 6.1.*
CVE List
linux linux_kernelbefore 4.19.312, from 4.20 before 5.4.274, from 5.5 before 5.10.215, from 5.11 before 5.15.155, from 5.16 before 6.1.86, from 6.2 before 6.6.27, from 6.7 before 6.8.6NVD
debian debian_linux10.0NVD

Classification

CWE-369

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bloquear: evitar la división por cero en blk_rq_stat_sum() La expresión dst->nr_samples + src->nr_samples puede tener un valor cero en caso de desbordamiento. Es necesario agregar un cheque para evitar la división por cero. Encontrado por el Centro de verificación de Linux (linuxtesting.org) con Svace.

References

https://git.kernel.org/stable/c/6a55dab4ac956deb23690eedd74e70b892a378e7patch
https://git.kernel.org/stable/c/edd073c78d2bf48c5b8bf435bbc3d61d6e7c6c14patch
https://git.kernel.org/stable/c/b0cb5564c3e8e0ee0a2d28c86fa7f02e82d64c3cpatch
https://git.kernel.org/stable/c/21e7d72d0cfcbae6042d498ea2e6f395311767f8patch
https://git.kernel.org/stable/c/512a01da7134bac8f8b373506011e8aaa3283854patch
https://git.kernel.org/stable/c/5f7fd6aa4c4877d77133ea86c14cf256f390b2fepatch
https://git.kernel.org/stable/c/98ddf2604ade2d954bf5ec193600d5274a43fd68patch
https://git.kernel.org/stable/c/93f52fbeaf4b676b21acfe42a5152620e6770d02patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlmailing-list
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.htmlmailing-list
https://cert-portal.siemens.com/productcert/html/ssa-398330.html
https://cert-portal.siemens.com/productcert/html/ssa-265688.html

Sources

SourceRecordLicence
CVE ListCVE-2024-35925 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-35925 changed 2026-10-15Public domain