{"id":"CVE-2026-100019","aliases":["CVE-2026-100019"],"related":[],"kind":"vulnerability","state":"published","title":"cgroup: fix cgroup.kill for exited thread group leader","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup: fix cgroup.kill for exited thread group leader\n\ncgroup.kill does not work in case a process' thread group leader is gone\nbut other threads are still running. This is because __cgroup_kill()\nonly walks the thread group leaders and sends SIGKILL to each of them\nwith send_sig(), which uses PIDTYPE_PID:\n\n1. The exited leader is still listed by CSS_TASK_ITER_PROCS as long as\n   the process has live threads, but a signal directed at a single\n   exiting task never takes effect: complete_signal() does not look for\n   another thread to deliver it to, and __send_signal_locked() now drops\n   it altogether.  The process keeps running.\n\n2. The live threads of such a process can be migrated to another cgroup\n   by writing any of their IDs to cgroup.procs, while the exited leader\n   stays behind.  The destination cgroup has no thread group leader to\n   iterate, so writing to its cgroup.kill does nothing at all.\n\nIn both cases the cgroup stays populated after cgroup.kill, and a\nprocess inside a container can use this to survive the container being\nkilled.  This also works with a private PID namespace when the init of\nthe container is the process, as the PID namespace is not torn down\nwhile init has live threads.\n\nCase 1 can be fixed by using do_send_sig_info(..., PIDTYPE_TGID) instead\nof send_sig(), so that the signal is taken by a live thread even if the\ntask found by the iterator is exiting. Note it was pointed out by Eric\nin [1] while reviewing v2 of cgroup.kill patchset, and v3 was meant to\nswitch to it, but the change was only made in cgroup_post_fork(),\nleaving __cgroup_kill() with send_sig().\n\nCase 2 can only be fixed by iterating over all threads, so this is what\nthe fix also does. Once a thread group is being killed, its other\nthreads are skipped since they already have a fatal signal pending.\n\nI ran some performance checks and the added cost is ~60 ns per every\nthread on my laptop (and less than a millisecond for 10K threads),\nwhich seems low. The time to \"populated 0\" seems unchanged.\n\nThe issue was found in crun by Anthropic's OSS Scanner, and crun is\ngetting a workaround for it [2] (which does what we needed to do\nbefore cgroup.kill was added).\n\n[1] https://lore.kernel.org/all/m1v97x6niq.fsf@fess.ebiederm.org/\n[2] https://github.com/containers/crun/pull/2351","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup: fix cgroup.kill for exited thread group leader\n\ncgroup.kill does not work in case a process' thread group leader is gone\nbut other threads are still running. This is because __cgroup_kill()\nonly walks the thread group leaders and sends SIGKILL to each of them\nwith send_sig(), which uses PIDTYPE_PID:\n\n1. The exited leader is still listed by CSS_TASK_ITER_PROCS as long as\n   the process has live threads, but a signal directed at a single\n   exiting task never takes effect: complete_signal() does not look for\n   another thread to deliver it to, and __send_signal_locked() now drops\n   it altogether.  The process keeps running.\n\n2. The live threads of such a process can be migrated to another cgroup\n   by writing any of their IDs to cgroup.procs, while the exited leader\n   stays behind.  The destination cgroup has no thread group leader to\n   iterate, so writing to its cgroup.kill does nothing at all.\n\nIn both cases the cgroup stays populated after cgroup.kill, and a\nprocess inside a container can use this to survive the container being\nkilled.  This also works with a private PID namespace when the init of\nthe container is the process, as the PID namespace is not torn down\nwhile init has live threads.\n\nCase 1 can be fixed by using do_send_sig_info(..., PIDTYPE_TGID) instead\nof send_sig(), so that the signal is taken by a live thread even if the\ntask found by the iterator is exiting. Note it was pointed out by Eric\nin [1] while reviewing v2 of cgroup.kill patchset, and v3 was meant to\nswitch to it, but the change was only made in cgroup_post_fork(),\nleaving __cgroup_kill() with send_sig().\n\nCase 2 can only be fixed by iterating over all threads, so this is what\nthe fix also does. Once a thread group is being killed, its other\nthreads are skipped since they already have a fatal signal pending.\n\nI ran some performance checks and the added cost is ~60 ns per every\nthread on my laptop (and less than a millisecond for 10K threads),\nwhich seems low. The time to \"populated 0\" seems unchanged.\n\nThe issue was found in crun by Anthropic's OSS Scanner, and crun is\ngetting a workaround for it [2] (which does what we needed to do\nbefore cgroup.kill was added).\n\n[1] https://lore.kernel.org/all/m1v97x6niq.fsf@fess.ebiederm.org/\n[2] https://github.com/containers/crun/pull/2351","source":"cvelist"}],"published":"2026-11-30T13:23:08.015Z","modified":"2026-11-30T14:17:17.107Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"661ee6280931548f7b3b887ad26a157474ae5ac4","fixed":"c43994bf3b82d13f579b559af00eb5daf9be5be4","status":"affected"},{"type":"git","introduced":"661ee6280931548f7b3b887ad26a157474ae5ac4","fixed":"c40e6b37041142c4d4e3fcfd9f2d7194374125e8","status":"affected"},{"type":"git","introduced":"661ee6280931548f7b3b887ad26a157474ae5ac4","fixed":"487ff40b919bb75f3cb5bf34cedc4d5c94295b4f","status":"affected"},{"type":"git","introduced":"661ee6280931548f7b3b887ad26a157474ae5ac4","fixed":"a5d11d0fd70ec90c8a45e447099331b1f26bf043","status":"affected"},{"type":"git","introduced":"661ee6280931548f7b3b887ad26a157474ae5ac4","fixed":"dba86614860210064742fa38ae2db0c9030dba27","status":"affected"},{"type":"git","introduced":"661ee6280931548f7b3b887ad26a157474ae5ac4","fixed":"d148bc1f49ac73ca9ad75cd44bbf71f9806cf635","status":"affected"},{"type":"git","introduced":"661ee6280931548f7b3b887ad26a157474ae5ac4","fixed":"da13e0e72a7329c95642c44b2d03d194ab071e04","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c43994bf3b82d13f579b559af00eb5daf9be5be4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c40e6b37041142c4d4e3fcfd9f2d7194374125e8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/487ff40b919bb75f3cb5bf34cedc4d5c94295b4f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5d11d0fd70ec90c8a45e447099331b1f26bf043","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dba86614860210064742fa38ae2db0c9030dba27","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d148bc1f49ac73ca9ad75cd44bbf71f9806cf635","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da13e0e72a7329c95642c44b2d03d194ab071e04","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100019","url":"https://www.cve.org/CVERecord?id=CVE-2026-100019","licence":"CVE Terms of Use","modified":"2026-11-30T13:23:08.015Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100019","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100019","licence":"Public domain","modified":"2026-11-30T14:17:17.107Z"}],"updatedAt":"2026-11-30T14:32:18.801Z","epss":{"score":0.00215,"percentile":0.1268,"date":"2026-12-01T12:00:22.000Z"}}