CVE-2024-47668
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.24% (higher than 9% of CVEs)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom ba20ba2e3743bac786dff777954c11930256075e before 0f27f4f445390cb7f73d4209cb2bf32834dc53da, from ba20ba2e3743bac786dff777954c11930256075e before 99418ec776a39609f50934720419e0b464ca2283, from ba20ba2e3743bac786dff777954c11930256075e before ad5ee9feebc2eb8cfc76ed74a2d6e55343b0e169, from ba20ba2e3743bac786dff777954c11930256075e before ebeff038744c498a036e7a92eb8e433ae0a386d7, from ba20ba2e3743bac786dff777954c11930256075e before d942e855324a60107025c116245095632476613e, from ba20ba2e3743bac786dff777954c11930256075e before 0f078f8ca93b28a34e20bd050f12cd4efeee7c0f, from ba20ba2e3743bac786dff777954c11930256075e before b2f11c6f3e1fc60742673b8675c95b78447f3dae, 5.1
Not affected: before 5.1, from 5.4.284 up to 5.4.*, from 5.10.226 up to 5.10.*, from 5.15.167 up to 5.15.*, from 6.1.110 up to 6.1.*, from 6.6.51 up to 6.6.*
CVE List
linux linux_kernelbefore 5.4.284, from 5.5 before 5.10.226, from 5.11 before 5.15.167, from 5.16 before 6.1.110, from 6.2 before 6.6.51, from 6.7 before 6.10.10, 6.11NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD4.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-362

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: lib/generic-radix-tree.c: Se corrige una ejecución poco frecuente en __genradix_ptr_alloc() Si necesitamos aumentar la profundidad del árbol, asignar un nuevo nodo y luego competir con otro hilo que aumentó la profundidad del árbol antes que nosotros, aún tendremos un nodo preasignado que podría usarse más adelante. Si luego usamos ese nodo para un nuevo nodo que no sea raíz, aún tendrá un puntero a la raíz anterior en lugar de estar a cero: solucione esto poniéndolo a cero en la ruta de falla cmpxchg.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-47668 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-47668 changed 2026-08-04Public domain