CVE-2021-47374 dma-debug: prevent an error message from causing runtime problems

High 7.5 Published Updated

An attacker can trigger excessive kernel error logging in DMA debug, causing high CPU usage and system unavailability.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-47374?

CVE-2021-47374 is a high-severity denial of service vulnerability in Linux kernel, published on 21 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

dma-debug: prevent an error message from causing runtime problems

For some drivers, that use the DMA API. This error message can be reached several millions of times per second, causing spam to the kernel's printk buffer and bringing the CPU usage up to 100% (so, it should be rate limited). However, since there is at least one driver that is in the mainline and suffers from the error condition, it is more useful to err_printk() here instead of just rate limiting the error message (in hopes that it will make it easier for other drivers that suffer from this issue to be spotted).

Weakness: CWE-770

Which versions are affected by CVE-2021-47374?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47374?

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-2021-47374 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47374, GHSA-335x-9j96-mxcr, UBUNTU-CVE-2021-47374.

Is CVE-2021-47374 in your software?

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

Check your SBOMs for free