# CVE-2026-98220: sched\_ext: Fix NULL sched deref in kfunc sub-sched error paths

> 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.20% (percentile 5, 2026-11-26)
- **Published:** 2026-10-06T08:44:55.843Z
- **Modified:** 2026-10-19T10:18:22.763Z

## Who should check

- Anyone running Linux \>= a5fa0708cbfda4d3c2c6a447de7c4b0b23595527, \< 589f0945bf3ebf0790fd51e28c7f0d04ed3d8b78; \>= a5fa0708cbfda4d3c2c6a447de7c4b0b23595527, \< 0a85182723b65ad8bee8131bc38fcf0347d6679b
- Anyone running Linux 7.1

## Description

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

sched\_ext: Fix NULL sched deref in kfunc sub-sched error paths

When the root scheduler has sub-scheds attached, the COMPAT kfunc
wrappers scx\_bpf\_select\_cpu\_and() and scx\_bpf\_dsq\_insert\_vtime() refuse
the call and report to @p's scheduler:

	scx\_error(scx\_task\_sched(p), "... must be used");

The wrappers are reachable with tasks that have no scheduler.
scx\_bpf\_select\_cpu\_and() is in the select\_cpu kfunc group, which
scx\_kfunc\_context\_filter() opens to BPF\_PROG\_TYPE\_SYSCALL programs;
scx\_bpf\_dsq\_insert\_vtime() is in the enqueue\_dispatch group, which
ops.enqueue() and ops.dispatch() may call with any KF\_RCU task -- the
group has no kf\_tasks validation, and scx\_dsq\_insert\_preamble() checks
task ownership with scx\_task\_on\_sched() precisely because @p may be an
arbitrary task.

scx\_task\_sched(p) is p-\>scx.sched, which is NULL for tasks past
sched\_ext\_dead() -- which clears it via scx\_disable\_and\_exit\_task() on
exit -- and for idle tasks, which the enable paths skip as they are
never scheduled through SCX. It is also an rcu\_dereference\_protected()
that expects @p's pi\_lock or rq lock, which neither wrapper holds.
Passing NULL to scx\_error() reaches scx\_vexit(), which dereferences
sch-\>exit\_info, oopsing the kernel.

One concrete trigger exercised while developing the fix: a
BPF\_PROG\_TYPE\_SYSCALL program calling the select\_cpu\_and wrapper on an
exited-but-not-reaped task while a sub-scheduler was attached (its pid
stays findable while the zombie is unreaped; faulting instruction is
the scx\_vexit() prologue "mov r15,\[rdi+0x398\]" with RDI=NULL and 0x398
the offset of sch-\>exit\_info):

  sched\_ext: BPF scheduler "kfunc\_subsched\_null" enabled
  sched\_ext: BPF sub-scheduler "kfunc\_subsched\_null" enabled
  sched\_ext: Unassociated program run\_select\_cpu\_ (id 76)
  BUG: kernel NULL pointer dereference, address: 0000000000000398
  \#PF: supervisor read access in kernel mode
  \#PF: error\_code(0x0000) - not-present page
  Oops: Oops: 0000 \[\#1\] SMP NOPTI
  CPU: 7 UID: 0 PID: 8201 Comm: kfunc\_test\_runn Tainted: G W
  RIP: 0010:scx\_vexit+0x25/0xa0
  Code: ... \<4c\> 8b bf 98 03 00 00 ...
  CR2: 0000000000000398
  Call Trace:
   \<TASK\>
   \_\_scx\_exit+0x4f/0x70
   scx\_bpf\_select\_cpu\_and+0xab/0xb0
   bpf\_prog\_430ed61a7b66e03a\_run\_select\_cpu\_and+0x9c/0xe7
   ? \_\_x64\_sys\_bpf+0x2c/0x40
   bpf\_prog\_test\_run\_syscall+0x130/0x2f0
   \_\_sys\_bpf+0x930/0x10d0
   ? \_\_x64\_sys\_bpf+0x2c/0x40
   \_\_x64\_sys\_bpf+0x2c/0x40
   do\_syscall\_64+0xbc/0x460
   entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
   \</TASK\>

Read @p's scheduler under RCU instead, which the wrappers can do from
their guard(rcu)(): fault it when it can be determined, and when it
can't be determined -- @p is a task past sched\_ext\_dead() or an idle
task -- there is nothing obviously wrong to report, so just refuse the
call as before without faulting any scheduler.

These COMPAT wrappers are scheduled for eventual removal once the
deprecation grace period elapses, but until then -- and regardless of
their removal timeline -- they must not oops the kernel on a task they
are handed.

## Affected and fixed versions

- Linux: \>= a5fa0708cbfda4d3c2c6a447de7c4b0b23595527, \< 589f0945bf3ebf0790fd51e28c7f0d04ed3d8b78; \>= a5fa0708cbfda4d3c2c6a447de7c4b0b23595527, \< 0a85182723b65ad8bee8131bc38fcf0347d6679b (cvelist)
- Linux: 7.1 (cvelist)

## Mitigation

- Upgrade Linux to 0a85182723b65ad8bee8131bc38fcf0347d6679b or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98220.md
Affected: Linux >= a5fa0708cbfda4d3c2c6a447de7c4b0b23595527, < 589f0945bf3ebf0790fd51e28c7f0d04ed3d8b78; >= a5fa0708cbfda4d3c2c6a447de7c4b0b23595527, < 0a85182723b65ad8bee8131bc38fcf0347d6679b; Linux 7.1
Fixed in: Linux 589f0945bf3ebf0790fd51e28c7f0d04ed3d8b78, Linux 0a85182723b65ad8bee8131bc38fcf0347d6679b

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-2026-98220 being exploited?

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

### How serious is CVE-2026-98220?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98220?

Linux \>= a5fa0708cbfda4d3c2c6a447de7c4b0b23595527, \< 589f0945bf3ebf0790fd51e28c7f0d04ed3d8b78; \>= a5fa0708cbfda4d3c2c6a447de7c4b0b23595527, \< 0a85182723b65ad8bee8131bc38fcf0347d6679b; Linux 7.1.

### Is there a fix for CVE-2026-98220?

Yes. Fixed in Linux 589f0945bf3ebf0790fd51e28c7f0d04ed3d8b78, Linux 0a85182723b65ad8bee8131bc38fcf0347d6679b. Upgrade Linux to 0a85182723b65ad8bee8131bc38fcf0347d6679b or later.

### How do I check if I'm affected by CVE-2026-98220?

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/589f0945bf3ebf0790fd51e28c7f0d04ed3d8b78>
- other: <https://git.kernel.org/stable/c/0a85182723b65ad8bee8131bc38fcf0347d6679b>

## 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-2026-98220>

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