CVE-2024-26945 crypto: iaa - Fix nr_cpus < nr_iaa case

High 8.4 Published Updated

A divide-by-zero error in the Linux kernel's IAA crypto driver can cause a system crash when the number of CPUs is less than the number of IAA devices.

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

What is CVE-2024-26945?

CVE-2024-26945 is a high-severity denial of service vulnerability in Linux kernel, published on 1 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:

crypto: iaa - Fix nr_cpus < nr_iaa case

If nr_cpus < nr_iaa, the calculated cpus_per_iaa will be 0, which causes a divide-by-0 in rebalance_wq_table().

Make sure cpus_per_iaa is 1 in that case, and also in the nr_iaa == 0 case, even though cpus_per_iaa is never used if nr_iaa == 0, for paranoia.

Weakness: CWE-369

Which versions are affected by CVE-2024-26945?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26945?

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

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-26945, DEBIAN-CVE-2024-26945, GHSA-r8hx-f24g-25mv, ROOT-OS-UBUNTU-2204-CVE-2024-26945, UBUNTU-CVE-2024-26945.

Is CVE-2024-26945 in your software?

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

Check your SBOMs for free