# CVE-2026-139172: sched_ext: Fix a lone IMMED task waiting behind a kept prev

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:14.835Z
- Modified: 2026-11-30T14:18:36.220Z
- Assigned by: Linux

## Description

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

sched_ext: Fix a lone IMMED task waiting behind a kept prev

While dispatch is in progress, rq_is_open() returns true and dsq_inc_nr()
schedules no reenqueue for an IMMED task inserted on an empty local DSQ. The
check at the end of dispatch_one() schedules the reenqueue only when more
than one task is queued, so a dispatch that keeps prev leaves a lone IMMED
task behind:

 1. a parent's ops.dispatch() sub-dispatches into a child, which consumes a
    task with SCX_ENQ_IMMED onto the empty local DSQ
 2. the parent extends prev's slice and dispatch keeps prev
 3. the local DSQ holds one task, so no reenqueue is scheduled

The IMMED task waits on the local DSQ behind prev.

Schedule the reenqueue when dispatch keeps prev and an IMMED task is queued,
as even a lone IMMED task can't run right away behind prev.

v2: The description and dispatch_one()'s comment are reworded.

(As written by CVE List.)

## Affected

- Linux Linux: from 98d709cba3193f0bec54da4cd76ef499ea2f1ef7 before e8c369a46f591bcfb82395adecca9db9accae5d1; from 98d709cba3193f0bec54da4cd76ef499ea2f1ef7 before 5173b2965834ad71d8c9035048354dce7c391125; 7.1 (not affected: before 7.1; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/e8c369a46f591bcfb82395adecca9db9accae5d1>
- <https://git.kernel.org/stable/c/5173b2965834ad71d8c9035048354dce7c391125>

## Sources

- CVE List: [CVE-2026-139172](https://www.cve.org/CVERecord?id=CVE-2026-139172), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139172](https://nvd.nist.gov/vuln/detail/CVE-2026-139172), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139172 · Whole record: https://cve.day/CVE-2026-139172.json · Rebuilt by cve.day 2026-11-30T14:32:56.203Z
