Skip to contentSkip to conversation

CVE-2026-89516: sched_ext: Don't BUG_ON a destroyed DSQ in process_deferred_reenq_users

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 11

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

sched_ext: Don't BUG_ON a destroyed DSQ in process_deferred_reenq_users

scx_bpf_dsq_reenq() queues a deferred reenq (dru) that runs from run_deferred(), not ops.dispatch(). If the DSQ is destroyed before the dru runs, process_deferred_reenq_users() sees dsq->id == SCX_DSQ_INVALID and hits the BUG_ON. destroy_dsq() doesn't flush pending drus, so just skip.

tj: Read dsq->id once with READ_ONCE(). Reading it separately in the INVALID
check and the BUG_ON would leave a window where destroy_dsq() can invalidate the id between the two reads and still trigger the BUG_ON.

The Linux kernel CVE team has assigned CVE-2026-89516 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.1 with commit 84b1a0ea0b7c23dec240783a592e480780efe459 and fixed in 7.2.4 with commit c480961a1e790b46ffd8c20c4b6754d65ec6572d
	Issue introduced in 7.1 with commit 84b1a0ea0b7c23dec240783a592e480780efe459 and fixed in 7.3-rc1 with commit 8d8dd8ae89eaa78b37fc85528e926029f5facbdf

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-89516

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
kernel/sched/ext/ext.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/c480961a1e790b46ffd8c20c4b6754d65ec6572d
	https://git.kernel.org/stable/c/8d8dd8ae89eaa78b37fc85528e926029f5facbdf