# CVE-2025-68202: sched\_ext: Fix unsafe locking in the scx\_dump\_state()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-16T13:48:30.376Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Anyone running Linux \>= 07814a9439a3b03d79a1001614b5bc1cab69bcec, \< 13d1c96d3a9f208bc1aa8642f6362dca25a157d2; \>= 07814a9439a3b03d79a1001614b5bc1cab69bcec, \< b6109750063d3b9aca1c57031213ac5485a06c54; \>= 07814a9439a3b03d79a1001614b5bc1cab69bcec, \< 5f02151c411dda46efcc5dc57b0845efcdcfc26d
- Anyone running Linux 6.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

sched\_ext: Fix unsafe locking in the scx\_dump\_state()

For built with CONFIG\_PREEMPT\_RT=y kernels, the dump\_lock will be converted
sleepable spinlock and not disable-irq, so the following scenarios occur:

inconsistent {IN-HARDIRQ-W} -\> {HARDIRQ-ON-W} usage.
irq\_work/0/27 \[HC0\[0\]:SC0\[0\]:HE1:SE1\] takes:
(&rq-\>\_\_lock){?...}-{2:2}, at: raw\_spin\_rq\_lock\_nested+0x2b/0x40
{IN-HARDIRQ-W} state was registered at:
   lock\_acquire+0x1e1/0x510
   \_raw\_spin\_lock\_nested+0x42/0x80
   raw\_spin\_rq\_lock\_nested+0x2b/0x40
   sched\_tick+0xae/0x7b0
   update\_process\_times+0x14c/0x1b0
   tick\_periodic+0x62/0x1f0
   tick\_handle\_periodic+0x48/0xf0
   timer\_interrupt+0x55/0x80
   \_\_handle\_irq\_event\_percpu+0x20a/0x5c0
   handle\_irq\_event\_percpu+0x18/0xc0
   handle\_irq\_event+0xb5/0x150
   handle\_level\_irq+0x220/0x460
   \_\_common\_interrupt+0xa2/0x1e0
   common\_interrupt+0xb0/0xd0
   asm\_common\_interrupt+0x2b/0x40
   \_raw\_spin\_unlock\_irqrestore+0x45/0x80
   \_\_setup\_irq+0xc34/0x1a30
   request\_threaded\_irq+0x214/0x2f0
   hpet\_time\_init+0x3e/0x60
   x86\_late\_time\_init+0x5b/0xb0
   start\_kernel+0x308/0x410
   x86\_64\_start\_reservations+0x1c/0x30
   x86\_64\_start\_kernel+0x96/0xa0
   common\_startup\_64+0x13e/0x148

 other info that might help us debug this:
 Possible unsafe locking scenario:

        CPU0
        ----
   lock(&rq-\>\_\_lock);
   \<Interrupt\>
     lock(&rq-\>\_\_lock);

  \*\*\* DEADLOCK \*\*\*

 stack backtrace:
 CPU: 0 UID: 0 PID: 27 Comm: irq\_work/0
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0x8c/0xd0
  dump\_stack+0x14/0x20
  print\_usage\_bug+0x42e/0x690
  mark\_lock.part.44+0x867/0xa70
  ? \_\_pfx\_mark\_lock.part.44+0x10/0x10
  ? string\_nocheck+0x19c/0x310
  ? number+0x739/0x9f0
  ? \_\_pfx\_string\_nocheck+0x10/0x10
  ? \_\_pfx\_check\_pointer+0x10/0x10
  ? kvm\_sched\_clock\_read+0x15/0x30
  ? sched\_clock\_noinstr+0xd/0x20
  ? local\_clock\_noinstr+0x1c/0xe0
  \_\_lock\_acquire+0xc4b/0x62b0
  ? \_\_pfx\_format\_decode+0x10/0x10
  ? \_\_pfx\_string+0x10/0x10
  ? \_\_pfx\_\_\_lock\_acquire+0x10/0x10
  ? \_\_pfx\_vsnprintf+0x10/0x10
  lock\_acquire+0x1e1/0x510
  ? raw\_spin\_rq\_lock\_nested+0x2b/0x40
  ? \_\_pfx\_lock\_acquire+0x10/0x10
  ? dump\_line+0x12e/0x270
  ? raw\_spin\_rq\_lock\_nested+0x20/0x40
  \_raw\_spin\_lock\_nested+0x42/0x80
  ? raw\_spin\_rq\_lock\_nested+0x2b/0x40
  raw\_spin\_rq\_lock\_nested+0x2b/0x40
  scx\_dump\_state+0x3b3/0x1270
  ? finish\_task\_switch+0x27e/0x840
  scx\_ops\_error\_irq\_workfn+0x67/0x80
  irq\_work\_single+0x113/0x260
  irq\_work\_run\_list.part.3+0x44/0x70
  run\_irq\_workd+0x6b/0x90
  ? \_\_pfx\_run\_irq\_workd+0x10/0x10
  smpboot\_thread\_fn+0x529/0x870
  ? \_\_pfx\_smpboot\_thread\_fn+0x10/0x10
  kthread+0x305/0x3f0
  ? \_\_pfx\_kthread+0x10/0x10
  ret\_from\_fork+0x40/0x70
  ? \_\_pfx\_kthread+0x10/0x10
  ret\_from\_fork\_asm+0x1a/0x30
  \</TASK\>

This commit therefore use rq\_lock\_irqsave/irqrestore() to replace
rq\_lock/unlock() in the scx\_dump\_state().

## Affected and fixed versions

- Linux: \>= 07814a9439a3b03d79a1001614b5bc1cab69bcec, \< 13d1c96d3a9f208bc1aa8642f6362dca25a157d2; \>= 07814a9439a3b03d79a1001614b5bc1cab69bcec, \< b6109750063d3b9aca1c57031213ac5485a06c54; \>= 07814a9439a3b03d79a1001614b5bc1cab69bcec, \< 5f02151c411dda46efcc5dc57b0845efcdcfc26d (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 5f02151c411dda46efcc5dc57b0845efcdcfc26d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-68202. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68202.md
Affected: Linux >= 07814a9439a3b03d79a1001614b5bc1cab69bcec, < 13d1c96d3a9f208bc1aa8642f6362dca25a157d2; >= 07814a9439a3b03d79a1001614b5bc1cab69bcec, < b6109750063d3b9aca1c57031213ac5485a06c54; >= 07814a9439a3b03d79a1001614b5bc1cab69bcec, < 5f02151c411dda46efcc5dc57b0845efcdcfc26d; Linux 6.12
Fixed in: Linux 13d1c96d3a9f208bc1aa8642f6362dca25a157d2, Linux 5f02151c411dda46efcc5dc57b0845efcdcfc26d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-68202 being exploited?

There is no confirmed exploitation: CVE-2025-68202 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-68202?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68202?

Linux \>= 07814a9439a3b03d79a1001614b5bc1cab69bcec, \< 13d1c96d3a9f208bc1aa8642f6362dca25a157d2; \>= 07814a9439a3b03d79a1001614b5bc1cab69bcec, \< b6109750063d3b9aca1c57031213ac5485a06c54; \>= 07814a9439a3b03d79a1001614b5bc1cab69bcec, \< 5f02151c411dda46efcc5dc57b0845efcdcfc26d; Linux 6.12.

### Is there a fix for CVE-2025-68202?

Yes. Fixed in Linux 13d1c96d3a9f208bc1aa8642f6362dca25a157d2, Linux 5f02151c411dda46efcc5dc57b0845efcdcfc26d. Upgrade Linux to 5f02151c411dda46efcc5dc57b0845efcdcfc26d or later.

### How do I check if I'm affected by CVE-2025-68202?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/13d1c96d3a9f208bc1aa8642f6362dca25a157d2>
- other: <https://git.kernel.org/stable/c/b6109750063d3b9aca1c57031213ac5485a06c54>
- other: <https://git.kernel.org/stable/c/5f02151c411dda46efcc5dc57b0845efcdcfc26d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-68202>

HTML: <https://flawdb.com/CVE-2025-68202> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-68202>
