---
id: CVE-2024-35925
title: |-
  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
summary: |-
  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 t…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-369
vendor: linux
product: linux_kernel
affected:
  - linux_kernel < 4.19.312
  - 'linux_kernel >= 4.20, < 5.4.274'
  - 'linux_kernel >= 5.5, < 5.10.215'
  - 'linux_kernel >= 5.11, < 5.15.155'
  - 'linux_kernel >= 5.16, < 6.1.86'
  - 'linux_kernel >= 6.2, < 6.6.27'
  - 'linux_kernel >= 6.7, < 6.8.6'
  - debian_linux = 10.0
patched:
  - linux_kernel 6.8.6
published: '2024-05-19'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:17:53.270'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-35925'
references:
  - url: 'https://git.kernel.org/stable/c/21e7d72d0cfcbae6042d498ea2e6f395311767f8'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/512a01da7134bac8f8b373506011e8aaa3283854'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5f7fd6aa4c4877d77133ea86c14cf256f390b2fe'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/6a55dab4ac956deb23690eedd74e70b892a378e7'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/93f52fbeaf4b676b21acfe42a5152620e6770d02'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/98ddf2604ade2d954bf5ec193600d5274a43fd68'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b0cb5564c3e8e0ee0a2d28c86fa7f02e82d64c3c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/edd073c78d2bf48c5b8bf435bbc3d61d6e7c6c14'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/21e7d72d0cfcbae6042d498ea2e6f395311767f8'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/512a01da7134bac8f8b373506011e8aaa3283854'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/5f7fd6aa4c4877d77133ea86c14cf256f390b2fe'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/6a55dab4ac956deb23690eedd74e70b892a378e7'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/93f52fbeaf4b676b21acfe42a5152620e6770d02'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/98ddf2604ade2d954bf5ec193600d5274a43fd68'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/b0cb5564c3e8e0ee0a2d28c86fa7f02e82d64c3c'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/edd073c78d2bf48c5b8bf435bbc3d61d6e7c6c14'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00227
epssPercentile: 0.1341
ingestedAt: '2026-10-15T03:30:12.688Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-05-20T15:10:44.680403Z'
---

## Overview

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

- `linux_kernel < 4.19.312`
- `linux_kernel >= 4.20, < 5.4.274`
- `linux_kernel >= 5.5, < 5.10.215`
- `linux_kernel >= 5.11, < 5.15.155`
- `linux_kernel >= 5.16, < 6.1.86`
- `linux_kernel >= 6.2, < 6.6.27`
- `linux_kernel >= 6.7, < 6.8.6`
- `debian_linux = 10.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.8.6`
