CVE-2026-89521 (GCVE-0-2026-89521)
Vulnerability from cvelistv5
Published
2026-09-11 19:44
Modified
2026-10-19 08:48
Summary
In the Linux kernel, the following vulnerability has been resolved: sched/core: Handle pick_task() releasing the rq lock Core scheduling's pick_next_task() breaks when a ->pick_task() implementation can release the rq lock. The selection state derived on entry is only valid while the lock is held continuously. Once a pick can drop the lock, an interleaving selection can invalidate all of it: the single-CPU fast path can commit an uncookied pick although the core went cookied during the release, and forceidle committed by the interleaving selection skews the restarted pass's accounting. Fix it by restarting the whole selection when a pick returns RETRY_TASK after releasing the lock: a single restart point above the state derivation replaces the per-loop restart labels, so a retry picks up state committed by interleaving selections and accounts and resets forceidle like a fresh selection would. need_sync and fi_before latch across retries. Clock validity can't be re-derived - there is no program-ordered way to tell whether the own and core rq clocks are still updated after the lock was released, as other lockers' pin cycles may or may not have invalidated them. When restarting, clear core_clock_updated so that the sibling loop re-updates the core rq, and update the own rq clock if invalidated.
Impacted products
Vendor Product Version
Linux Linux Version: 4c95380701f58b8112f0b891de8d160e4199e19d
Version: 4c95380701f58b8112f0b891de8d160e4199e19d
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "kernel/sched/core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "88ed5a66467ca2a5148b9997af9c71d8c43060ad",
              "status": "affected",
              "version": "4c95380701f58b8112f0b891de8d160e4199e19d",
              "versionType": "git"
            },
            {
              "lessThan": "c10b216a072ff5c57bc880a05f87eb519aecc529",
              "status": "affected",
              "version": "4c95380701f58b8112f0b891de8d160e4199e19d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "kernel/sched/core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.19"
            },
            {
              "lessThan": "6.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.4",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsched/core: Handle pick_task() releasing the rq lock\n\nCore scheduling\u0027s pick_next_task() breaks when a -\u003epick_task()\nimplementation can release the rq lock. The selection state derived on entry\nis only valid while the lock is held continuously. Once a pick can drop the\nlock, an interleaving selection can invalidate all of it: the single-CPU\nfast path can commit an uncookied pick although the core went cookied during\nthe release, and forceidle committed by the interleaving selection skews the\nrestarted pass\u0027s accounting.\n\nFix it by restarting the whole selection when a pick returns RETRY_TASK\nafter releasing the lock: a single restart point above the state derivation\nreplaces the per-loop restart labels, so a retry picks up state committed by\ninterleaving selections and accounts and resets forceidle like a fresh\nselection would.\n\nneed_sync and fi_before latch across retries. Clock validity can\u0027t be\nre-derived - there is no program-ordered way to tell whether the own and\ncore rq clocks are still updated after the lock was released, as other\nlockers\u0027 pin cycles may or may not have invalidated them. When restarting,\nclear core_clock_updated so that the sibling loop re-updates the core rq,\nand update the own rq clock if invalidated."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.3,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The flaw is in pick_next_task() in kernel/sched/core.c, reached only from the local __schedule() hotpath. An attacker triggers it with prctl(PR_SCHED_CORE) and their own threads; it is not reachable from network packet processing, ksmbd/nfsd, or other remote handlers.\nAC:L - The attacker controls both sides of the race: they create cookied and uncookied tasks, pin them on both SMT siblings, and generate concurrent scheduling so pick_task_scx() drops the rq lock during core-wide selection. Success does not depend on an uncontrollable victim state or memory layout.\nPR:L - prctl(PR_SCHED_CORE) is available to an unprivileged process (only ptrace_may_access on its own tasks). The lock-dropping pick_task() is sched_ext, which an attacker can load with CAP_BPF/CAP_PERFMON via a user namespace or BPF token, or which may already be loaded on the host.\nUI:N - The attacker enables core scheduling, runs their own threads on SMT siblings, and drives context switches themselves. No victim action such as mounting a filesystem or opening a file is required.\nS:U - Impact is confined to the host kernel scheduler (SMT cookie selection and forceidle/vruntime accounting). This is a same-host isolation failure, not a VM/guest-to-host escape or IOMMU/DMA boundary bypass.\nC:H - After pick_task() drops the rq lock, the single-CPU fast path can commit an uncookied pick while an interleaving selection made the core cookied, so SMT siblings run mismatched cookies and bypass core scheduling\u0027s L1TF/MDS isolation, enabling cross-domain memory disclosure via SMT side channels.\nI:L - The misplaced RETRY_TASK restart skips forceidle reset and can apply invalidated rq clocks to vruntime and forceidle accounting, which is limited corruption of scheduler metadata rather than an arbitrary kernel write or control-flow hijack.\nA:H - Invalidated rq clocks and skewed forceidle accounting after a lock-dropping pick can apply a huge bogus vruntime delta or incorrectly force-idle SMT siblings, stranding runnable tasks in a hang-class scheduling DoS on the core."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-19T08:48:12.536Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/88ed5a66467ca2a5148b9997af9c71d8c43060ad"
        },
        {
          "url": "https://git.kernel.org/stable/c/c10b216a072ff5c57bc880a05f87eb519aecc529"
        }
      ],
      "title": "sched/core: Handle pick_task() releasing the rq lock",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-89521",
    "datePublished": "2026-09-11T19:44:03.257Z",
    "dateReserved": "2026-09-11T19:38:34.718Z",
    "dateUpdated": "2026-10-19T08:48:12.536Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…