5.5medium
sched/mmcid: Handle vfork()/CLONE_VM correctly
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: sched/mmcid: Handle vfork()/CLONE_VM correctly Matthieu and Jiri reported stalls where a task endlessly loops in mm_get_cid() when scheduling in. It turned out that the logic which handles vfork()'ed tasks is broken. It is invoked when the number of tasks associated to a process is smaller than the number of MMCID users. It then walks the task list to find the vfork()'ed task, but accounts all the already processed tasks as well. If that double processing brings the number of to be handled tasks to 0, the walk stops and the vfork()'ed task's CID is not fixed up. As a consequence a subsequent schedule in fails to acquire a (transitional) CID and the machine stalls. Cure this by removing the accounting condition and make the fixup always walk the full task list if it could not find the exact number of users in the process' thread list.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from fbd0e71dc370af73f6b316e4de9eed273dd90340 before e6761cdce78a8919a537989afb6aaf6881469f83, from fbd0e71dc370af73f6b316e4de9eed273dd90340 before 28b5a1395036d6c7a6c8034d85ad3d7d365f192c, 6.19 Not affected: before 6.19, from 6.19.9 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.19 before 6.19.9, 7.0 | NVD |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: sched/mmcid: Handle vfork()/CLONE_VM correctly Matthieu and Jiri reported stalls where a task endlessly loops in mm_get_cid() when scheduling in. It turned out that the logic which handles vfork()'ed tasks is broken. It is invoked when the number of tasks associated to a process is smaller than the number of MMCID users. It then walks the task list to find the vfork()'ed task, but accounts all the already processed tasks as well. If that double processing brings the number of to be handled tasks to 0, the walk stops and the vfork()'ed task's CID is not fixed up. As a consequence a subsequent schedule in fails to acquire a (transitional) CID and the machine stalls. Cure this by removing the accounting condition and make the fixup always walk the full task list if it could not find the exact number of users in the process' thread list.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: sched/mmcid: Manejar vfork()/CLONE_VM correctamente Matthieu y Jiri informaron bloqueos donde una tarea entra en un bucle infinito en mm_get_cid() al programar. Resultó que la lógica que maneja las tareas vfork()’eadas está rota. Se invoca cuando el número de tareas asociadas a un proceso es menor que el número de usuarios de MMCID. Luego recorre la lista de tareas para encontrar la tarea vfork()’eada, pero también contabiliza todas las tareas ya procesadas. Si ese doble procesamiento reduce el número de tareas a manejar a 0, el recorrido se detiene y el CID de la tarea vfork()’eada no se corrige. Como consecuencia, una programación posterior no logra adquirir un CID (transicional) y la máquina se bloquea. Solucione esto eliminando la condición de contabilidad y haga que la corrección siempre recorra la lista completa de tareas si no pudo encontrar el número exacto de usuarios en la lista de hilos del proceso.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43417 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-43417 changed 2026-11-11 | Public domain |