FKIE_CVE-2026-143085

Vulnerability from fkie_nvd - Published: 2026-12-03 10:17 - Updated: 2026-12-04 04:17
Summary
In the Linux kernel, the following vulnerability has been resolved: sched_ext: Fix stale pick when the donor changes during dispatch Dispatch takes rq->donor as @prev and can drop the rq lock. With proxy execution, @prev may not be the running task, and another CPU can reset the donor to rq->curr meanwhile, through proxy_needs_return() on a wakeup or sched_proxy_block_task() on a class or scheduler change. The wakeup case: 1. dispatch_one() drops the rq lock, e.g. to move a task from another CPU. 2. Another CPU wakes the donor, which proxy execution migrated to this CPU. proxy_needs_return() dequeues it and resets the donor to rq->curr, and the wakeup enqueues it, possibly on another CPU. 3. dispatch_one() sees @prev queued and returns SCX_DSP_PREV. 4. do_pick_task_scx() returns @prev, and this CPU runs a task that is queued on another rq. Under core scheduling, the core pick runs dispatch for the sibling rqs with each sibling's donor as @prev, and a sibling can switch @prev out while dispatch has the lock dropped. Whatever dispatch concluded, and whatever it does with @prev after the drop, is about a task the rq no longer owns, whether it keeps @prev running or hands it to ops.dispatch(). rq_modified_above() catches the change only when rq->curr is in a class above ext, and the dl_server pick skips that check. dispatch_core_pick() retries after a lock drop, but by then dispatch has used @prev. Restart the pick when @prev is no longer the donor. dispatch_one() tests after each step that can drop the lock, and scx_dispatch_sched() decides per ops.dispatch() call whether to hand @prev over, which also covers a class or scheduler change across a drop. With proxy execution alone, the donor only ever changes to rq->curr during a pick, so the retried pick can't go stale again. Under core scheduling, the restart goes through the core pick, which already retries after any lock drop. 7a3a6bfbd62a ("sched: Rework prev_balance() to avoid stale prev references") closed the same window in prev_balance() by reading rq->donor instead of taking @prev. That doesn't work here, as dispatch never evaluated the new donor, which may not even be a sched_ext task. Verified with synthetic reproducers for both cases. v2: Also cover rq lock drops inside dispatch (sashiko). v3: Don't keep a stale @prev after ops.dispatch() (sashiko). v4: Also cover a sibling switching @prev out under core scheduling. Retitle.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "kernel/sched/ext/ext.c",
            "kernel/sched/ext/inlines.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "b88438530ee3978b1d3f24576c4f508be2b30b82",
              "status": "affected",
              "version": "7b0888b7cc1924b74ce660e02f6211df8dd46e7b",
              "versionType": "git"
            },
            {
              "lessThan": "9ce6fca02867911ba79bc3664219effe8c7be8f4",
              "status": "affected",
              "version": "7b0888b7cc1924b74ce660e02f6211df8dd46e7b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "kernel/sched/ext/ext.c",
            "kernel/sched/ext/inlines.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.12"
            },
            {
              "lessThan": "6.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Fix stale pick when the donor changes during dispatch\n\nDispatch takes rq-\u003edonor as @prev and can drop the rq lock. With proxy\nexecution, @prev may not be the running task, and another CPU can reset the\ndonor to rq-\u003ecurr meanwhile, through proxy_needs_return() on a wakeup or\nsched_proxy_block_task() on a class or scheduler change. The wakeup case:\n\n1. dispatch_one() drops the rq lock, e.g. to move a task from another CPU.\n2. Another CPU wakes the donor, which proxy execution migrated to this CPU.\n   proxy_needs_return() dequeues it and resets the donor to rq-\u003ecurr, and\n   the wakeup enqueues it, possibly on another CPU.\n3. dispatch_one() sees @prev queued and returns SCX_DSP_PREV.\n4. do_pick_task_scx() returns @prev, and this CPU runs a task that is queued\n   on another rq.\n\nUnder core scheduling, the core pick runs dispatch for the sibling rqs with\neach sibling\u0027s donor as @prev, and a sibling can switch @prev out while\ndispatch has the lock dropped.\n\nWhatever dispatch concluded, and whatever it does with @prev after the drop,\nis about a task the rq no longer owns, whether it keeps @prev running or\nhands it to ops.dispatch().\n\nrq_modified_above() catches the change only when rq-\u003ecurr is in a class\nabove ext, and the dl_server pick skips that check. dispatch_core_pick()\nretries after a lock drop, but by then dispatch has used @prev.\n\nRestart the pick when @prev is no longer the donor. dispatch_one() tests\nafter each step that can drop the lock, and scx_dispatch_sched() decides per\nops.dispatch() call whether to hand @prev over, which also covers a class or\nscheduler change across a drop.\n\nWith proxy execution alone, the donor only ever changes to rq-\u003ecurr during a\npick, so the retried pick can\u0027t go stale again. Under core scheduling, the\nrestart goes through the core pick, which already retries after any lock\ndrop.\n\n7a3a6bfbd62a (\"sched: Rework prev_balance() to avoid stale prev references\")\nclosed the same window in prev_balance() by reading rq-\u003edonor instead of\ntaking @prev. That doesn\u0027t work here, as dispatch never evaluated the new\ndonor, which may not even be a sched_ext task.\n\nVerified with synthetic reproducers for both cases.\n\nv2: Also cover rq lock drops inside dispatch (sashiko).\n\nv3: Don\u0027t keep a stale @prev after ops.dispatch() (sashiko).\n\nv4: Also cover a sibling switching @prev out under core scheduling. Retitle."
    }
  ],
  "id": "CVE-2026-143085",
  "lastModified": "2026-12-04T04:17:36.120",
  "metrics": {
    "cvssMetricV31": [
      {
        "cvssData": {
          "attackComplexity": "HIGH",
          "attackVector": "LOCAL",
          "availabilityImpact": "HIGH",
          "baseScore": 7.0,
          "baseSeverity": "HIGH",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "privilegesRequired": "LOW",
          "scope": "UNCHANGED",
          "userInteraction": "NONE",
          "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "version": "3.1"
        },
        "exploitabilityScore": 1.0,
        "impactScore": 5.9,
        "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "type": "Secondary"
      }
    ]
  },
  "published": "2026-12-03T10:17:39.240",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/9ce6fca02867911ba79bc3664219effe8c7be8f4"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/b88438530ee3978b1d3f24576c4f508be2b30b82"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



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.