lib/generic-radix-tree.c: Fix rare race in __genradix_ptr_alloc()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ba20ba2e3743bac786dff777954c11930256075e · < 0f078f8ca93b28a34e20bd050f12cd4efeee7c0f| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
A rare race in the Linux kernel’s generic radix tree allocator can leave a newly allocated non-root node pointing to the old root instead of being zeroed. It occurs when concurrent threads increase the tree depth; the input does not specify an attacker capability or access requirements.
Engineers running the Linux kernel should check whether their kernel is affected; the input does not identify affected versions.