GHSA-Q3H7-45M2-GFHP

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

cgroup: fix cgroup.kill for exited thread group leader

cgroup.kill does not work in case a process' thread group leader is gone but other threads are still running. This is because __cgroup_kill() only walks the thread group leaders and sends SIGKILL to each of them with send_sig(), which uses PIDTYPE_PID:

  1. The exited leader is still listed by CSS_TASK_ITER_PROCS as long as the process has live threads, but a signal directed at a single exiting task never takes effect: complete_signal() does not look for another thread to deliver it to, and __send_signal_locked() now drops it altogether. The process keeps running.

  2. The live threads of such a process can be migrated to another cgroup by writing any of their IDs to cgroup.procs, while the exited leader stays behind. The destination cgroup has no thread group leader to iterate, so writing to its cgroup.kill does nothing at all.

In both cases the cgroup stays populated after cgroup.kill, and a process inside a container can use this to survive the container being killed. This also works with a private PID namespace when the init of the container is the process, as the PID namespace is not torn down while init has live threads.

Case 1 can be fixed by using do_send_sig_info(..., PIDTYPE_TGID) instead of send_sig(), so that the signal is taken by a live thread even if the task found by the iterator is exiting. Note it was pointed out by Eric in [1] while reviewing v2 of cgroup.kill patchset, and v3 was meant to switch to it, but the change was only made in cgroup_post_fork(), leaving __cgroup_kill() with send_sig().

Case 2 can only be fixed by iterating over all threads, so this is what the fix also does. Once a thread group is being killed, its other threads are skipped since they already have a fatal signal pending.

I ran some performance checks and the added cost is ~60 ns per every thread on my laptop (and less than a millisecond for 10K threads), which seems low. The time to "populated 0" seems unchanged.

The issue was found in crun by Anthropic's OSS Scanner, and crun is getting a workaround for it [2] (which does what we needed to do before cgroup.kill was added).

[1] https://lore.kernel.org/all/m1v97x6niq.fsf@fess.ebiederm.org/ [2] https://github.com/containers/crun/pull/2351

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-100019"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:17:17Z",
    "severity": null
  },
  "details": "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\u0027 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\u0027s 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",
  "id": "GHSA-q3h7-45m2-gfhp",
  "modified": "2026-11-30T15:32:01Z",
  "published": "2026-11-30T15:32:01Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-100019"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/487ff40b919bb75f3cb5bf34cedc4d5c94295b4f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a5d11d0fd70ec90c8a45e447099331b1f26bf043"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c40e6b37041142c4d4e3fcfd9f2d7194374125e8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c43994bf3b82d13f579b559af00eb5daf9be5be4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d148bc1f49ac73ca9ad75cd44bbf71f9806cf635"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/da13e0e72a7329c95642c44b2d03d194ab071e04"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dba86614860210064742fa38ae2db0c9030dba27"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.