CVE-2024-47668 lib/generic-radix-tree.c: Fix rare race in __genradix_ptr_alloc()

High 7.8 Published Updated

A race condition in the Linux kernel's generic radix tree allows attackers to read or modify stale memory pointers, potentially leading to data corruption or information disclosure.

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

CVE-2024-47668 is a high-severity vulnerability in Linux kernel, published on 9 Oct 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:

lib/generic-radix-tree.c: Fix rare race in __genradix_ptr_alloc()

If we need to increase the tree depth, allocate a new node, and then race with another thread that increased the tree depth before us, we'll still have a preallocated node that might be used later.

If we then use that node for a new non-root node, it'll still have a pointer to the old root instead of being zeroed - fix this by zeroing it in the cmpxchg failure path.

Weakness: CWE-362

Which versions are affected by CVE-2024-47668?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-47668?

Apply the vendor's patch.

Is CVE-2024-47668 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-47668, DEBIAN-CVE-2024-47668, GHSA-r4v9-v8c5-298p, ROOT-OS-DEBIAN-11-CVE-2024-47668, UBUNTU-CVE-2024-47668.

Is CVE-2024-47668 in your software?

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

Check your SBOMs for free