Skip to content
Heist/ feed
High

sched/rt: Fix race in push_rt_task

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: sched/rt: Fix race in push_rt_task Overview ======== When a CPU chooses to call push_rt_task and picks a task to push to another CPU's runqueue then it will call find_lock_lowest_rq method which would take a double lock on both CPUs' runqueues. If one of the locks aren't readily available, it may lead to dropping the current runqueue lock and reacquiring both the locks at once. During this window it is possible that the task is already migrated and is running on some other CPU. These cases are already handled. However, if the task is migrated and has already been executed and another CPU is now trying to wake it up (ttwu) such that it is queued again on the runqeue (on_rq is 1) and also if the task was run by the same CPU, then the current checks will pass even though the task was migrated out and is no longer in the pushable tasks list. Crashes ======= This bug resulted in quite a few flavors of crashes triggering kernel panics with various crash signatures such as assert failures, page faults, null pointer dereferences, and queue corruption errors all coming from scheduler itself. Some of the crashes: -> kernel BUG at kernel/sched/rt.c:1616! BUG_ON(idx >= MAX_RT_PRIO) Call Trace: ? __die_body+0x1a/0x60 ? die+0x2a/0x50 ? do_trap+0x85/0x100 ? pick_next_task_rt+0x6e/0x1d0 ? do_error_trap+0x64/0xa0 ? pick_next_task_rt+0x6e/0x1d0 ? exc_invalid_op+0x4c/0x60 ? pick_next_task_rt+0x6e/0x1d0 ? asm_exc_invalid_op+0x12

Announced Group revision 1
Original source ↗

CVE-2025-38234

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-2025-38234

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": "e8fa136262e1121288bb93befe2295928ffd240d",
        "lessThan": "9f6022b2573ae068793810db719e131df3ded405",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e8fa136262e1121288bb93befe2295928ffd240d",
        "lessThan": "debfbc047196df1f6bfd52f2d028c21dce67f0de",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e8fa136262e1121288bb93befe2295928ffd240d",
        "lessThan": "07ecabfbca64f4f0b6071cf96e49d162fa9d138d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e8fa136262e1121288bb93befe2295928ffd240d",
        "lessThan": "690e47d1403e90b7f2366f03b52ed3304194c793",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "kernel/sched/rt.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2.6.25"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "2.6.25",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.124",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.64",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.15.4",
        "versionType": "semver",
        "lessThanOrEqual": "6.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.16",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "kernel/sched/rt.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-38234

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

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