PoC Monitor
← All CVEs
CVE-2025-21965published 1 Apr 2025 15:47 UTCData: JSON · API

Linux

sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()

In the Linux kernel, the following vulnerability has been resolved: sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl() If a BPF scheduler provides an invalid CPU (outside the nr_cpu_ids range) as prev_cpu to scx_bpf_select_cpu_dfl() it can cause a kernel crash. To prevent this, validate prev_cpu in scx_bpf_select_cpu_dfl() and trigger an scx error if an invalid CPU is specified.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CNA · CWE-476
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Linux Linux
  • >= f0e1a0643a59bf1f922fa209cec86a170b784f3f, < 752b56bb76e2471197d25d6948d85753043b10da
  • >= f0e1a0643a59bf1f922fa209cec86a170b784f3f, < 515680e76c536dd4aa8e2b5d674b0d441baddf5b
  • >= f0e1a0643a59bf1f922fa209cec86a170b784f3f, < 9360dfe4cbd62ff1eb8217b815964931523b75b3

Fixed in 752b56bb76e2471197d25d6948d85753043b10da, 515680e76c536dd4aa8e2b5d674b0d441baddf5b, 9360dfe4cbd62ff1eb8217b815964931523b75b3

Linux Linux
  • 6.12

Fixed in 0, 6.12.20, 6.13.8, 6.14

Mitigation

Upgrade Linux to 752b56bb76e2471197d25d6948d85753043b10da or 515680e76c536dd4aa8e2b5d674b0d441baddf5b or 9360dfe4cbd62ff1eb8217b815964931523b75b3 or later.

Upgrade Linux to 0 or 6.12.20 or 6.13.8 or 6.14 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published1 Apr 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.