{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143085","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.347Z","datePublished":"2026-12-03T09:19:06.531Z","dateUpdated":"2026-12-04T03:28:52.798Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:28:52.798Z"},"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->donor 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->curr 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->curr, 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's 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->curr 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->curr during a\npick, so the retried pick can't 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->donor instead of\ntaking @prev. That doesn't 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't keep a stale @prev after ops.dispatch() (sashiko).\n\nv4: Also cover a sibling switching @prev out under core scheduling. Retitle."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - do_pick_task_scx() snapshots prev from rq->donor and is reached from pick_task_scx() or ext_server_pick_task() via pick_next_task() in __schedule(); the donor is replaced in proxy_reset_donor() from ttwu_runnable() during a local try_to_wake_up(), and no remote protocol message supplies the bad state.\nAC:H - dispatch_one() keeps the old donor only after switch_rq_lock() in dispatch_to_local_dsq() or consume_remote_task(). proxy_reset_donor(), from proxy_needs_return() or sched_proxy_block_task(), requires CONFIG_SCHED_PROXY_EXEC, which is EXPERT and off by default. Core scheduling alone makes dispatch_core_pick() return SCX_DSP_RETRY on a lock_drop_seq change, so that donor is not run. The attacker cannot enable the Kconfig.\nPR:L - An unprivileged task already in ext_sched_class enters dispatch_one() from __schedule() with no capability check. The attacker blocks one thread in mutex_lock() (schedule_preempt_disabled) so it stays a proxy donor, and wakes it from another of their threads through try_to_wake_up().\nUI:N - The attacker schedules and wakes their own threads. No other user has to mount an image, open a file, or take any action.\nS:U - do_pick_task_scx() returns a task_struct the rq no longer owns and __schedule() context_switches to it inside the host scheduler. That is same-authority kernel corruption, not a guest-to-host or IOMMU boundary crossing.\nC:H - set_next_task_scx() calls scx_dispatch_dequeue(), which list_del's the task off a remote local DSQ without that rq's lock because dsq_is_rq_owned() skips dsq->lock, and __schedule() switch_to's the same kernel stack while the task stays queued on the other rq. That is a disclosure-capable memory-corruption primitive.\nI:H - The same unsynchronized scx_task_unlink_from_dsq() writes the remote DSQ list pointers, and context_switch() then runs that task_struct on a second CPU, so one kernel stack and the scheduler lists are corrupted and can be turned into control-flow hijack.\nA:H - Running the stale donor, which proxy_needs_return() already queued on another rq, shares one task_struct and kernel stack across two CPUs and races the remote DSQ list, which oopses or deadlocks the scheduler."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/sched/ext/ext.c","kernel/sched/ext/inlines.h"],"versions":[{"version":"7b0888b7cc1924b74ce660e02f6211df8dd46e7b","lessThan":"b88438530ee3978b1d3f24576c4f508be2b30b82","status":"affected","versionType":"git"},{"version":"7b0888b7cc1924b74ce660e02f6211df8dd46e7b","lessThan":"9ce6fca02867911ba79bc3664219effe8c7be8f4","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/sched/ext/ext.c","kernel/sched/ext/inlines.h"],"versions":[{"version":"6.12","status":"affected"},{"version":"0","lessThan":"6.12","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.4-rc3"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/b88438530ee3978b1d3f24576c4f508be2b30b82"},{"url":"https://git.kernel.org/stable/c/9ce6fca02867911ba79bc3664219effe8c7be8f4"}],"title":"sched_ext: Fix stale pick when the donor changes during dispatch","x_generator":{"engine":"bippy-1.2.0"}}}}