CVE-2024-43890 tracing: Fix overflow in get_free_elt()

Medium 5.5 Published Updated

An integer overflow in the Linux kernel tracing map allows attackers to cause a CPU hang via infinite loop during element insertion.

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

CVE-2024-43890 is a medium-severity vulnerability in Linux kernel, published on 26 Aug 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:

tracing: Fix overflow in get_free_elt()

"tracing_map->next_elt" in get_free_elt() is at risk of overflowing.

Once it overflows, new elements can still be inserted into the tracing_map even though the maximum number of elements (`max_elts`) has been reached. Continuing to insert elements after the overflow could result in the tracing_map containing "tracing_map->max_size" elements, leaving no empty entries. If any attempt is made to insert an element into a full tracing_map using `__tracing_map_insert()`, it will cause an infinite loop with preemption disabled, leading to a CPU hang problem.

Fix this by preventing any further increments to "tracing_map->next_elt" once it reaches "tracing_map->max_elt".

Weakness: CWE-190

Which versions are affected by CVE-2024-43890?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-43890?

Apply the vendor's patch.

Is CVE-2024-43890 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-48620, BELL-CVE-2024-43890, DEBIAN-CVE-2024-43890, GHSA-mxxf-4gg8-94vw, UBUNTU-CVE-2024-43890.

Is CVE-2024-43890 in your software?

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

Check your SBOMs for free