Skip to main content
VulnerabilityPublished Updated

CVE-2025-21897: Linux kernel · sched_ext: Fix pick_task_scx() picking non-queued tasks when it's called without

Affects Linux kernelSource GCVE Database

0
Compare

Not known to be exploited · CVSS 5.5 Medium.

Data as of 30 Oct 2026, 16:10 UTC

CVSS 3.1 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Apr 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSlinux-raspi-realtimepkg:deb/ubuntu/linux-raspi-realtime?arch=source&distro=nobleOther threatsAffected
  • =6.8.0-2019.20
Fixed in–
Ubuntu 24.04 LTSlinux-realtimepkg:deb/ubuntu/linux-realtime?arch=source&distro=nobleOther threatsAffected
  • =6.8.1-1015.16
Fixed in–
Ubuntu 22.04 LTSlinux-allwinner-5.19pkg:deb/ubuntu/linux-allwinner-5.19?arch=source&distro=jammyOther threatsAffected
  • 5.19.0-1007.7~22.04.1 – 5.19.0-1015.15~22.04.1
8 affected builds
Fixed in–
Ubuntu 22.04 LTSlinux-aws-5.19pkg:deb/ubuntu/linux-aws-5.19?arch=source&distro=jammyOther threatsAffected
  • 5.19.0-1019.20~22.04.1 – 5.19.0-1029.30~22.04.1
10 affected builds
Fixed in–
Ubuntu 22.04 LTSlinux-aws-6.2pkg:deb/ubuntu/linux-aws-6.2?arch=source&distro=jammyOther threatsAffected
  • 6.2.0-1005.5~22.04.1 – 6.2.0-1018.18~22.04.1
14 affected builds
Fixed in–
Ubuntu 22.04 LTSlinux-aws-6.5pkg:deb/ubuntu/linux-aws-6.5?arch=source&distro=jammyOther threatsAffected
  • 6.5.0-1008.8~22.04.1 – 6.5.0-1024.24~22.04.1
14 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix for this vulnerability has been implemented in the Linux kernel. Users should update to the fixed kernel versions listed to resolve the issue. Since this is a kernel-level bug, applying the official kernel patches or upgrading to a fixed kernel release is the recommended remediation. No additional mitigations are specified or required beyond applying the fix.

Description

CVE-2025-21897 is a vulnerability in the Linux kernel's scheduler extension where the function pick_task_scx() may incorrectly select non-runnable tasks due to improper checks. This can cause the task state to become inconsistent, such as a task being off the run queue but still marked as running on CPU, potentially leading to busy loops and deadlocks. The issue arises from a bug in the fair scheduling class and was fixed by correcting the condition that determines if a task is queued. The vulnerability affects specific Linux kernel versions used in various Ubuntu LTS releases.

References

Community reviews

Loading reviews…