7.8high
cachefiles: add missing lock protection when polling
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: cachefiles: add missing lock protection when polling Add missing lock protection in poll routine when iterating xarray, otherwise: Even with RCU read lock held, only the slot of the radix tree is ensured to be pinned there, while the data structure (e.g. struct cachefiles_req) stored in the slot has no such guarantee. The poll routine will iterate the radix tree and dereference cachefiles_req accordingly. Thus RCU read lock is not adequate in this case and spinlock is needed here.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0e19a18f998dcabe8be590e0b39660a1f230209b before 97cfd5e20ddc2e33e16ce369626ce76c9a475fd7, from 18943864342705fa18dd4e6b8d608491fec81f6e before 6bb6bd3dd6f382dfd36220d4b210a0c77c066651, from b817e22b2e91257ace32a6768c3c003faeaa1c5c before 8eadcab7f3dd809edbe5ae20533ff843dfea3a07, from b817e22b2e91257ace32a6768c3c003faeaa1c5c before cf5bb09e742a9cf6349127e868329a8f69b7a014, 6.8 Not affected: before 6.8, from 6.9.10 up to 6.9.*, from 6.10 up to * | CVE List |
| linux linux_kernel | from 6.8 before 6.9.10 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
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: cachefiles: add missing lock protection when polling Add missing lock protection in poll routine when iterating xarray, otherwise: Even with RCU read lock held, only the slot of the radix tree is ensured to be pinned there, while the data structure (e.g. struct cachefiles_req) stored in the slot has no such guarantee. The poll routine will iterate the radix tree and dereference cachefiles_req accordingly. Thus RCU read lock is not adequate in this case and spinlock is needed here.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: archivos de caché: agregue protección de bloqueo faltante al sondear. Agregue protección de bloqueo faltante en la rutina de sondeo al iterar xarray; de lo contrario: incluso con el bloqueo de lectura de RCU mantenido, solo se garantiza que la ranura del árbol de base ser anclado allí, mientras que la estructura de datos (por ejemplo, struct cachefiles_req) almacenada en la ranura no tiene tal garantía. La rutina de sondeo iterará el árbol de base y eliminará la referencia a cachefiles_req en consecuencia. Por lo tanto, el bloqueo de lectura de la RCU no es adecuado en este caso y aquí se necesita el bloqueo de giro.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-42250 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-42250 changed 2026-08-04 | Public domain |