CVE-2026-31733 (GCVE-0-2026-31733)
Vulnerability from cvelistv5 – Published: 2026-05-01 14:14 – Updated: 2026-05-01 14:14
VLAI?
Title
sched_ext: Fix stale direct dispatch state in ddsp_dsq_id
Summary
In the Linux kernel, the following vulnerability has been resolved:
sched_ext: Fix stale direct dispatch state in ddsp_dsq_id
@p->scx.ddsp_dsq_id can be left set (non-SCX_DSQ_INVALID) triggering a
spurious warning in mark_direct_dispatch() when the next wakeup's
ops.select_cpu() calls scx_bpf_dsq_insert(), such as:
WARNING: kernel/sched/ext.c:1273 at scx_dsq_insert_commit+0xcd/0x140
The root cause is that ddsp_dsq_id was only cleared in dispatch_enqueue(),
which is not reached in all paths that consume or cancel a direct dispatch
verdict.
Fix it by clearing it at the right places:
- direct_dispatch(): cache the direct dispatch state in local variables
and clear it before dispatch_enqueue() on the synchronous path. For
the deferred path, the direct dispatch state must remain set until
process_ddsp_deferred_locals() consumes them.
- process_ddsp_deferred_locals(): cache the dispatch state in local
variables and clear it before calling dispatch_to_local_dsq(), which
may migrate the task to another rq.
- do_enqueue_task(): clear the dispatch state on the enqueue path
(local/global/bypass fallbacks), where the direct dispatch verdict is
ignored.
- dequeue_task_scx(): clear the dispatch state after dispatch_dequeue()
to handle both the deferred dispatch cancellation and the holding_cpu
race, covering all cases where a pending direct dispatch is
cancelled.
- scx_disable_task(): clear the direct dispatch state when
transitioning a task out of the current scheduler. Waking tasks may
have had the direct dispatch state set by the outgoing scheduler's
ops.select_cpu() and then been queued on a wake_list via
ttwu_queue_wakelist(), when SCX_OPS_ALLOW_QUEUED_WAKEUP is set. Such
tasks are not on the runqueue and are not iterated by scx_bypass(),
so their direct dispatch state won't be cleared. Without this clear,
any subsequent SCX scheduler that tries to direct dispatch the task
will trigger the WARN_ON_ONCE() in mark_direct_dispatch().
Severity ?
No CVSS data available.
Assigner
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| Linux | Linux |
Affected:
5b26f7b920f76b2b9cc398c252a9e35e44bf5bb9 , < ca685511f7afd42cdcbb0feea42e5d332d384251
(git)
Affected: 5b26f7b920f76b2b9cc398c252a9e35e44bf5bb9 , < 5e7b2cc8fae9ec2a5bc53311191d2faaff75a4b5 (git) Affected: 5b26f7b920f76b2b9cc398c252a9e35e44bf5bb9 , < 7ea601daa0153e19cd1c6e6b300348c70c05fe77 (git) Affected: 5b26f7b920f76b2b9cc398c252a9e35e44bf5bb9 , < 7e0ffb72de8aa3b25989c2d980e81b829c577010 (git) |
||
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"kernel/sched/ext.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "ca685511f7afd42cdcbb0feea42e5d332d384251",
"status": "affected",
"version": "5b26f7b920f76b2b9cc398c252a9e35e44bf5bb9",
"versionType": "git"
},
{
"lessThan": "5e7b2cc8fae9ec2a5bc53311191d2faaff75a4b5",
"status": "affected",
"version": "5b26f7b920f76b2b9cc398c252a9e35e44bf5bb9",
"versionType": "git"
},
{
"lessThan": "7ea601daa0153e19cd1c6e6b300348c70c05fe77",
"status": "affected",
"version": "5b26f7b920f76b2b9cc398c252a9e35e44bf5bb9",
"versionType": "git"
},
{
"lessThan": "7e0ffb72de8aa3b25989c2d980e81b829c577010",
"status": "affected",
"version": "5b26f7b920f76b2b9cc398c252a9e35e44bf5bb9",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"kernel/sched/ext.c"
],
"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": "6.12.*",
"status": "unaffected",
"version": "6.12.82",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.22",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.19.*",
"status": "unaffected",
"version": "6.19.12",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.0",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.82",
"versionStartIncluding": "6.12",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.22",
"versionStartIncluding": "6.12",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.19.12",
"versionStartIncluding": "6.12",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.0",
"versionStartIncluding": "6.12",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Fix stale direct dispatch state in ddsp_dsq_id\n\n@p-\u003escx.ddsp_dsq_id can be left set (non-SCX_DSQ_INVALID) triggering a\nspurious warning in mark_direct_dispatch() when the next wakeup\u0027s\nops.select_cpu() calls scx_bpf_dsq_insert(), such as:\n\n WARNING: kernel/sched/ext.c:1273 at scx_dsq_insert_commit+0xcd/0x140\n\nThe root cause is that ddsp_dsq_id was only cleared in dispatch_enqueue(),\nwhich is not reached in all paths that consume or cancel a direct dispatch\nverdict.\n\nFix it by clearing it at the right places:\n\n - direct_dispatch(): cache the direct dispatch state in local variables\n and clear it before dispatch_enqueue() on the synchronous path. For\n the deferred path, the direct dispatch state must remain set until\n process_ddsp_deferred_locals() consumes them.\n\n - process_ddsp_deferred_locals(): cache the dispatch state in local\n variables and clear it before calling dispatch_to_local_dsq(), which\n may migrate the task to another rq.\n\n - do_enqueue_task(): clear the dispatch state on the enqueue path\n (local/global/bypass fallbacks), where the direct dispatch verdict is\n ignored.\n\n - dequeue_task_scx(): clear the dispatch state after dispatch_dequeue()\n to handle both the deferred dispatch cancellation and the holding_cpu\n race, covering all cases where a pending direct dispatch is\n cancelled.\n\n - scx_disable_task(): clear the direct dispatch state when\n transitioning a task out of the current scheduler. Waking tasks may\n have had the direct dispatch state set by the outgoing scheduler\u0027s\n ops.select_cpu() and then been queued on a wake_list via\n ttwu_queue_wakelist(), when SCX_OPS_ALLOW_QUEUED_WAKEUP is set. Such\n tasks are not on the runqueue and are not iterated by scx_bypass(),\n so their direct dispatch state won\u0027t be cleared. Without this clear,\n any subsequent SCX scheduler that tries to direct dispatch the task\n will trigger the WARN_ON_ONCE() in mark_direct_dispatch()."
}
],
"providerMetadata": {
"dateUpdated": "2026-05-01T14:14:31.558Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/ca685511f7afd42cdcbb0feea42e5d332d384251"
},
{
"url": "https://git.kernel.org/stable/c/5e7b2cc8fae9ec2a5bc53311191d2faaff75a4b5"
},
{
"url": "https://git.kernel.org/stable/c/7ea601daa0153e19cd1c6e6b300348c70c05fe77"
},
{
"url": "https://git.kernel.org/stable/c/7e0ffb72de8aa3b25989c2d980e81b829c577010"
}
],
"title": "sched_ext: Fix stale direct dispatch state in ddsp_dsq_id",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-31733",
"datePublished": "2026-05-01T14:14:31.558Z",
"dateReserved": "2026-03-09T15:48:24.137Z",
"dateUpdated": "2026-05-01T14:14:31.558Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-31733",
"date": "2026-05-05",
"epss": "0.00018",
"percentile": "0.04643"
},
"nvd": "{\"cve\":{\"id\":\"CVE-2026-31733\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-05-01T15:16:35.913\",\"lastModified\":\"2026-05-01T15:24:14.893\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nsched_ext: Fix stale direct dispatch state in ddsp_dsq_id\\n\\n@p-\u003escx.ddsp_dsq_id can be left set (non-SCX_DSQ_INVALID) triggering a\\nspurious warning in mark_direct_dispatch() when the next wakeup\u0027s\\nops.select_cpu() calls scx_bpf_dsq_insert(), such as:\\n\\n WARNING: kernel/sched/ext.c:1273 at scx_dsq_insert_commit+0xcd/0x140\\n\\nThe root cause is that ddsp_dsq_id was only cleared in dispatch_enqueue(),\\nwhich is not reached in all paths that consume or cancel a direct dispatch\\nverdict.\\n\\nFix it by clearing it at the right places:\\n\\n - direct_dispatch(): cache the direct dispatch state in local variables\\n and clear it before dispatch_enqueue() on the synchronous path. For\\n the deferred path, the direct dispatch state must remain set until\\n process_ddsp_deferred_locals() consumes them.\\n\\n - process_ddsp_deferred_locals(): cache the dispatch state in local\\n variables and clear it before calling dispatch_to_local_dsq(), which\\n may migrate the task to another rq.\\n\\n - do_enqueue_task(): clear the dispatch state on the enqueue path\\n (local/global/bypass fallbacks), where the direct dispatch verdict is\\n ignored.\\n\\n - dequeue_task_scx(): clear the dispatch state after dispatch_dequeue()\\n to handle both the deferred dispatch cancellation and the holding_cpu\\n race, covering all cases where a pending direct dispatch is\\n cancelled.\\n\\n - scx_disable_task(): clear the direct dispatch state when\\n transitioning a task out of the current scheduler. Waking tasks may\\n have had the direct dispatch state set by the outgoing scheduler\u0027s\\n ops.select_cpu() and then been queued on a wake_list via\\n ttwu_queue_wakelist(), when SCX_OPS_ALLOW_QUEUED_WAKEUP is set. Such\\n tasks are not on the runqueue and are not iterated by scx_bypass(),\\n so their direct dispatch state won\u0027t be cleared. Without this clear,\\n any subsequent SCX scheduler that tries to direct dispatch the task\\n will trigger the WARN_ON_ONCE() in mark_direct_dispatch().\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/5e7b2cc8fae9ec2a5bc53311191d2faaff75a4b5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7e0ffb72de8aa3b25989c2d980e81b829c577010\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7ea601daa0153e19cd1c6e6b300348c70c05fe77\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ca685511f7afd42cdcbb0feea42e5d332d384251\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
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.
Loading…
Loading…