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

Medium 5.5 Published Updated

A division by zero error in the Linux kernel block layer can cause a system crash, requiring a kernel patch to prevent denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-35925?

CVE-2024-35925 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 19 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-369

Which versions are affected by CVE-2024-35925?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-35925?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-35925 being exploited?

There is no known exploitation of CVE-2024-35925 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2024-35925, DEBIAN-CVE-2024-35925, GHSA-p6hw-pm34-65v4, UBUNTU-CVE-2024-35925.

Is CVE-2024-35925 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free