7.8high
eventfs: Fix use-after-free in eventfs_remove_rec()
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: eventfs: Fix use-after-free in eventfs_remove_rec() eventfs_remove_rec() recursively removes the child at the current loop position. After the recursive call returns, list_for_each_entry() advances by reading list.next from the removed child. If free_ei() drops the final reference, release_ei() reuses the list/rcu union to queue an SRCU callback. The child may be freed before that read. The eventfs_mutex serializes list updates, but it does not keep the removed child alive or prevent the SRCU callback from running. Use list_for_each_entry_safe() to save the next sibling before recursively removing the current child.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 5dfb04100326f70e3b2d2872c2476ed20b804837 before b77581b25e213e83b79ce11eb30024e55ceeb3e9, from 43aa6f97c2d03a52c1ddb86768575fc84344bdbb before f161d7861a0bfdf10af6b738b3b57636204661fb, from 43aa6f97c2d03a52c1ddb86768575fc84344bdbb before 5635211b44969f4816e29ec4d5f8665fb39535d0, from 43aa6f97c2d03a52c1ddb86768575fc84344bdbb before 74bb1eaf72d185a78c879eb2678ea500f82f46a8, from 43aa6f97c2d03a52c1ddb86768575fc84344bdbb before fd73b691702170d37d66f4b0278530cea8ed419a, 5a43badefe0eccca0c26144c0a44b8d417ce8103, from 6.6.18 before 6.6.152, from 6.7.6 before 6.8 and 1 more Not affected: before 6.8, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*, from 6.18.45 up to 6.18.*, from 7.1.9 up to 7.1.*, from 7.2 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: eventfs: Fix use-after-free in eventfs_remove_rec() eventfs_remove_rec() recursively removes the child at the current loop position. After the recursive call returns, list_for_each_entry() advances by reading list.next from the removed child. If free_ei() drops the final reference, release_ei() reuses the list/rcu union to queue an SRCU callback. The child may be freed before that read. The eventfs_mutex serializes list updates, but it does not keep the removed child alive or prevent the SRCU callback from running. Use list_for_each_entry_safe() to save the next sibling before recursively removing the current child.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: eventfs: Solución para el uso después de liberación en eventfs_remove_rec() eventfs_remove_rec() elimina recursivamente el hijo en la posición actual del bucle. Después de que la llamada recursiva regresa, list_for_each_entry() avanza leyendo list.next del hijo eliminado. Si free_ei() libera la referencia final, release_ei() reutiliza la unión list/rcu para encolar una llamada de retorno SRCU. El hijo puede ser liberado antes de esa lectura. El eventfs_mutex serializa las actualizaciones de la lista, pero no mantiene vivo al hijo eliminado ni evita que se ejecute la llamada de retorno SRCU. Utilizar list_for_each_entry_safe() para guardar el siguiente hermano antes de eliminar recursivamente el hijo actual.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74606 changed 2026-08-25 | CVE Terms of Use |
| NVD | CVE-2026-74606 changed 2026-10-14 | Public domain |