GHSA-X6HG-CFM3-8WJ7

Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31
VLAI
Details

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

sched_ext: Reject DSQ iterator kfuncs in tracing programs

bpf_iter_scx_dsq_next() and bpf_iter_scx_dsq_destroy() take the target user DSQ's raw spinlock, but they are in scx_kfunc_ids_any, which is also registered for BPF_PROG_TYPE_TRACING.

For an active root scheduler without ops.sub_attach, the compatibility path in scx_prog_sched() lets an unassociated tracing program resolve to that scheduler. The tracing program can then call the iterator kfuncs while the target DSQ lock is already held.

For example, a scheduler which mixes FIFO and priority-queue insertions into a user DSQ triggers scx_error() from scx_dispatch_enqueue() while holding that DSQ's lock. scx_claim_exit() emits sched_ext_exit before the lock is released:

scx_dispatch_enqueue() raw_spin_lock(&dsq->lock) scx_error() scx_claim_exit() trace_sched_ext_exit() tracing BPF program bpf_iter_scx_dsq_new(dsq_id) bpf_for_each(scx_dsq, p, dsq_id, 0) bpf_iter_scx_dsq_next(it) raw_spin_lock_irqsave(&dsq->lock)

The tracing program recursively acquires the same raw spinlock and locks up the CPU. Because the tracepoint runs before scx_finish_exit(), disable_irq_work is not queued and the scheduler cannot enter its normal disable path.

Reject the two iterator kfuncs from tracing programs at verification time. The kfuncs remain available to SCX struct_ops and syscall programs. bpf_iter_scx_dsq_destroy() has no independent live reproduction: its cursor only links into the DSQ after at least one successful next(), which deadlocks in the same window first. It is included for symmetry.

This extends the coverage of commit b07a7450f6ef ("sched_ext: Reject rq-lock-taking kfuncs in tracing programs") and commit 4c2e0751d5e6 ("sched_ext: Reject scx_bpf_destroy_dsq() in tracing programs").

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-143194"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T10:17:56Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Reject DSQ iterator kfuncs in tracing programs\n\nbpf_iter_scx_dsq_next() and bpf_iter_scx_dsq_destroy() take the target\nuser DSQ\u0027s raw spinlock, but they are in scx_kfunc_ids_any, which is\nalso registered for BPF_PROG_TYPE_TRACING.\n\nFor an active root scheduler without ops.sub_attach, the compatibility\npath in scx_prog_sched() lets an unassociated tracing program resolve to\nthat scheduler. The tracing program can then call the iterator kfuncs\nwhile the target DSQ lock is already held.\n\nFor example, a scheduler which mixes FIFO and priority-queue insertions\ninto a user DSQ triggers scx_error() from scx_dispatch_enqueue() while\nholding that DSQ\u0027s lock. scx_claim_exit() emits sched_ext_exit before\nthe lock is released:\n\n  scx_dispatch_enqueue()\n    raw_spin_lock(\u0026dsq-\u003elock)\n    scx_error()\n      scx_claim_exit()\n        trace_sched_ext_exit()\n          tracing BPF program\n            bpf_iter_scx_dsq_new(dsq_id)\n            bpf_for_each(scx_dsq, p, dsq_id, 0)\n              bpf_iter_scx_dsq_next(it)\n                raw_spin_lock_irqsave(\u0026dsq-\u003elock)\n\nThe tracing program recursively acquires the same raw spinlock and locks\nup the CPU. Because the tracepoint runs before scx_finish_exit(),\ndisable_irq_work is not queued and the scheduler cannot enter its normal\ndisable path.\n\nReject the two iterator kfuncs from tracing programs at verification\ntime. The kfuncs remain available to SCX struct_ops and syscall\nprograms. bpf_iter_scx_dsq_destroy() has no independent live\nreproduction: its cursor only links into the DSQ after at least one\nsuccessful next(), which deadlocks in the same window first. It is\nincluded for symmetry.\n\nThis extends the coverage of commit b07a7450f6ef (\"sched_ext: Reject\nrq-lock-taking kfuncs in tracing programs\") and commit 4c2e0751d5e6\n(\"sched_ext: Reject scx_bpf_destroy_dsq() in tracing programs\").",
  "id": "GHSA-x6hg-cfm3-8wj7",
  "modified": "2026-12-03T12:31:08Z",
  "published": "2026-12-03T12:31:08Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143194"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5a55ec80c7696d694c49f3e189293bee6e8a0395"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/700a332c3fe33014bbd5ae852d71ba679fc29e0a"
    }
  ],
  "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.