{"id":"CVE-2026-43418","aliases":["CVE-2026-43418"],"related":[],"kind":"vulnerability","state":"published","title":"sched/mmcid: Prevent CID stalls due to concurrent forks","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched/mmcid: Prevent CID stalls due to concurrent forks\n\nA newly forked task is accounted as MMCID user before the task is visible\nin the process' thread list and the global task list. This creates the\nfollowing problem:\n\n CPU1\t\t\tCPU2\n fork()\n   sched_mm_cid_fork(tnew1)\n     tnew1->mm.mm_cid_users++;\n     tnew1->mm_cid.cid = getcid()\n-> preemption\n\t\t\tfork()\n\t\t\t  sched_mm_cid_fork(tnew2)\n\t\t\t    tnew2->mm.mm_cid_users++;\n                            // Reaches the per CPU threshold\n\t\t\t    mm_cid_fixup_tasks_to_cpus()\n\t\t\t    for_each_other(current, p)\n\t\t\t         ....\n\nAs tnew1 is not visible yet, this fails to fix up the already allocated CID\nof tnew1. As a consequence a subsequent schedule in might fail to acquire a\n(transitional) CID and the machine stalls.\n\nMove the invocation of sched_mm_cid_fork() after the new task becomes\nvisible in the thread and the task list to prevent this.\n\nThis also makes it symmetrical vs. exit() where the task is removed as CID\nuser before the task is removed from the thread and task lists.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched/mmcid: Prevent CID stalls due to concurrent forks\n\nA newly forked task is accounted as MMCID user before the task is visible\nin the process' thread list and the global task list. This creates the\nfollowing problem:\n\n CPU1\t\t\tCPU2\n fork()\n   sched_mm_cid_fork(tnew1)\n     tnew1->mm.mm_cid_users++;\n     tnew1->mm_cid.cid = getcid()\n-> preemption\n\t\t\tfork()\n\t\t\t  sched_mm_cid_fork(tnew2)\n\t\t\t    tnew2->mm.mm_cid_users++;\n                            // Reaches the per CPU threshold\n\t\t\t    mm_cid_fixup_tasks_to_cpus()\n\t\t\t    for_each_other(current, p)\n\t\t\t         ....\n\nAs tnew1 is not visible yet, this fails to fix up the already allocated CID\nof tnew1. As a consequence a subsequent schedule in might fail to acquire a\n(transitional) CID and the machine stalls.\n\nMove the invocation of sched_mm_cid_fork() after the new task becomes\nvisible in the thread and the task list to prevent this.\n\nThis also makes it symmetrical vs. exit() where the task is removed as CID\nuser before the task is removed from the thread and task lists.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsched/mmcid: Prevenir bloqueos de CID debido a bifurcaciones concurrentes\n\nUna 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:\n\n CPU1\t\t\tCPU2\n fork()\n   sched_mm_cid_fork(tnew1)\n     tnew1  ->  mm.mm_cid_users++;\n     tnew1  ->  mm_cid.cid = getcid()\n  ->   preemption\n\t\t\tfork()\n\t\t\t  sched_mm_cid_fork(tnew2)\n\t\t\t    tnew2  ->  mm.mm_cid_users++;\n                            // Reaches the per CPU threshold\n\t\t\t    mm_cid_fixup_tasks_to_cpus()\n\t\t\t    for_each_other(current, p)\n\t\t\t         ....\n\nComo 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.\n\nMover 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.\n\nEsto 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.","source":"nvd"}],"published":"2026-05-08T14:21:54.362Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"fbd0e71dc370af73f6b316e4de9eed273dd90340","fixed":"f0189d49282e0458f3a737bd486c1ec048148f66","status":"affected"},{"type":"git","introduced":"fbd0e71dc370af73f6b316e4de9eed273dd90340","fixed":"b2e48c429ec54715d16fefa719dd2fbded2e65be","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"6.19.9","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.19","fixed":"6.19.9"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/f0189d49282e0458f3a737bd486c1ec048148f66","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2e48c429ec54715d16fefa719dd2fbded2e65be","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43418","url":"https://www.cve.org/CVERecord?id=CVE-2026-43418","licence":"CVE Terms of Use","modified":"2026-05-11T22:24:12.301Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43418","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43418","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.059Z","epss":{"score":0.00107,"percentile":0.01263,"date":"2026-12-01T12:00:22.000Z"}}