Skip to content
Heist/ feed
Unrated

sched_ext: Don't run ops.dequeue() with a DSQ lock held

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: sched_ext: Don't run ops.dequeue() with a DSQ lock held ops.dequeue() is invoked with the source user DSQ's lock still held on the consume and move paths (scx_consume_dispatch_q(), move_task_between_dsqs()). A BPF scheduler which locks the source user DSQ from ops.dequeue() - e.g. by iterating it with bpf_iter_scx_dsq - self-deadlocks. ops.dequeue() can only call the "any" kfuncs and none of them can lock a builtin DSQ, so the global and bypass paths can't deadlock; however, all DSQ locks share one lockdep class, so iterating any user DSQ from ops.dequeue() on those paths trips the recursion check. Move the invocation after the DSQ unlock on all three paths. SCX_TASK_IN_CUSTODY is cleared under the lock serializing the transfer so that the callback is invoked exactly once.

Announced Group revision 1
Original source ↗

CVE-2026-98865

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-98865

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "ebf1ccff79c43f860cbd2f9d6cfab9a462d0cb2d",
        "lessThan": "fe499ae9da46e297f578d4346c4c8e338c3118db",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "ebf1ccff79c43f860cbd2f9d6cfab9a462d0cb2d",
        "lessThan": "cb86607ada73185f321baa7f9d94a08a3a40bbf5",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "kernel/sched/ext/ext.c",
      "kernel/sched/ext/internal.h",
      "kernel/sched/ext/sub.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "7.1"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "7.1",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "7.2.10",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "kernel/sched/ext/ext.c",
      "kernel/sched/ext/internal.h",
      "kernel/sched/ext/sub.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98865

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#38759 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement