CVE-2024-42145 IB/core: Implement a limit on UMAD receive List
An attacker can cause a denial of service by flooding the InfiniBand UMAD receive list, leading to uncontrolled memory growth.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-42145?
CVE-2024-42145 is a high-severity denial of service vulnerability in Linux kernel, published on 30 Jul 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:
IB/core: Implement a limit on UMAD receive List
The existing behavior of ib_umad, which maintains received MAD packets in an unbounded list, poses a risk of uncontrolled growth. As user-space applications extract packets from this list, the rate of extraction may not match the rate of incoming packets, leading to potential list overflow.
To address this, we introduce a limit to the size of the list. After considering typical scenarios, such as OpenSM processing, which can handle approximately 100k packets per second, and the 1-second retry timeout for most packets, we set the list size limit to 200k. Packets received beyond this limit are dropped, assuming they are likely timed out by the time they are handled by user-space.
Notably, packets queued on the receive list due to reasons like timed-out sends are preserved even when the list is full.
Weakness: CWE-770
Which versions are affected by CVE-2024-42145?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-42145?
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-42145 being exploited?
There is no known exploitation of CVE-2024-42145 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-42145, DEBIAN-CVE-2024-42145, GHSA-45vq-73jx-ggvm, UBUNTU-CVE-2024-42145.