CVE-2024-26860 dm-integrity: fix a memory leak when rechecking the data

Medium 5.5 Published Updated

A memory leak in the Linux kernel dm-integrity module allows attackers to cause denial of service by triggering repeated data rechecks after checksum failures.

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-26860?

CVE-2024-26860 is a medium-severity denial of service vulnerability in Linux kernel, published on 17 Apr 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:

dm-integrity: fix a memory leak when rechecking the data

Memory for the "checksums" pointer will leak if the data is rechecked after checksum failure (because the associated kfree won't happen due to 'goto skip_io').

Fix this by freeing the checksums memory before recheck, and just use the "checksum_onstack" memory for storing checksum during recheck.

Weakness: CWE-401

Which versions are affected by CVE-2024-26860?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26860?

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-26860 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-26860, DEBIAN-CVE-2024-26860, GHSA-h5px-p7wm-gqpv, UBUNTU-CVE-2024-26860.

Is CVE-2024-26860 in your software?

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

Check your SBOMs for free