CVE-2026-43418
JSON

5.5medium

sched/mmcid: Prevent CID stalls due to concurrent forks

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: Prevent CID stalls due to concurrent forks A newly forked task is accounted as MMCID user before the task is visible in the process' thread list and the global task list. This creates the following problem: CPU1 CPU2 fork() sched_mm_cid_fork(tnew1) tnew1->mm.mm_cid_users++; tnew1->mm_cid.cid = getcid() -> preemption fork() sched_mm_cid_fork(tnew2) tnew2->mm.mm_cid_users++; // Reaches the per CPU threshold mm_cid_fixup_tasks_to_cpus() for_each_other(current, p) .... As tnew1 is not visible yet, this fails to fix up the already allocated CID of tnew1. As a consequence a subsequent schedule in might fail to acquire a (transitional) CID and the machine stalls. Move the invocation of sched_mm_cid_fork() after the new task becomes visible in the thread and the task list to prevent this. This also makes it symmetrical vs. exit() where the task is removed as CID user before the task is removed from the thread and task lists.

Affected

Product or packageVersionsReported by
Linux Linuxfrom fbd0e71dc370af73f6b316e4de9eed273dd90340 before f0189d49282e0458f3a737bd486c1ec048148f66, from fbd0e71dc370af73f6b316e4de9eed273dd90340 before b2e48c429ec54715d16fefa719dd2fbded2e65be, 6.19
Not affected: before 6.19, from 6.19.9 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.19 before 6.19.9, 7.0NVD

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: sched/mmcid: Prevent CID stalls due to concurrent forks A newly forked task is accounted as MMCID user before the task is visible in the process' thread list and the global task list. This creates the following problem: CPU1 CPU2 fork() sched_mm_cid_fork(tnew1) tnew1->mm.mm_cid_users++; tnew1->mm_cid.cid = getcid() -> preemption fork() sched_mm_cid_fork(tnew2) tnew2->mm.mm_cid_users++; // Reaches the per CPU threshold mm_cid_fixup_tasks_to_cpus() for_each_other(current, p) .... As tnew1 is not visible yet, this fails to fix up the already allocated CID of tnew1. As a consequence a subsequent schedule in might fail to acquire a (transitional) CID and the machine stalls. Move the invocation of sched_mm_cid_fork() after the new task becomes visible in the thread and the task list to prevent this. This also makes it symmetrical vs. exit() where the task is removed as CID user before the task is removed from the thread and task lists.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: sched/mmcid: Prevenir bloqueos de CID debido a bifurcaciones concurrentes Una tarea recién bifurcada se contabiliza como usuario de MMCID antes de que la tarea sea visible en la lista de hilos del proceso y en la lista global de tareas. Esto crea el siguiente problema: CPU1 CPU2 fork() sched_mm_cid_fork(tnew1) tnew1 -> mm.mm_cid_users++; tnew1 -> mm_cid.cid = getcid() -> preemption fork() sched_mm_cid_fork(tnew2) tnew2 -> mm.mm_cid_users++; // Reaches the per CPU threshold mm_cid_fixup_tasks_to_cpus() for_each_other(current, p) .... Como tnew1 aún no es visible, esto no logra corregir el CID ya asignado de tnew1. Como consecuencia, una planificación posterior podría no lograr adquirir un CID (transitorio) y la máquina se bloquea. Mover la invocación de sched_mm_cid_fork() después de que la nueva tarea se vuelva visible en la lista de hilos y en la lista de tareas para prevenir esto. Esto también lo hace simétrico frente a exit() donde la tarea se elimina como usuario de CID antes de que la tarea sea eliminada de las listas de hilos y tareas.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43418 changed 2026-05-11CVE Terms of Use
NVDCVE-2026-43418 changed 2026-11-11Public domain