Skip to contentSkip to conversation

CVE-2026-99144: sched_ext: Fix use-after-free of a destroyed user DSQ by a deferred reenqueue

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 28

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: Fix use-after-free of a destroyed user DSQ by a deferred reenqueue

A deferred reenqueue can read a freed user DSQ. The request stays on its CPU's deferred list until run_deferred() takes it, and the RCU callback that frees the DSQ assumes that the grace period has flushed it, so exit_dsq() checks the per-CPU node without the deferred list lock. A grace period waits for readers in flight, not for a pending run_deferred(). A run_deferred() which starts after the grace period began can detach the request right before the callback looks and then read the freed DSQ's id.

Cancel the pending requests before the grace period instead. The irq work that frees the DSQ unlinks every CPU's request under the per-CPU deferred list lock, and schedule_dsq_reenq() ignores a new request under the same lock once the id is invalid. Only a run_deferred() that started before the grace period can hold a request, and it runs with IRQs disabled, so the grace period waits for it and nothing touches the DSQ after the callback.

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

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

	Issue introduced in 7.1 with commit 84b1a0ea0b7c23dec240783a592e480780efe459 and fixed in 7.2.13 with commit 633f586329bfd9843bf8acf86c95353f4c16e22d
	Issue introduced in 7.1 with commit 84b1a0ea0b7c23dec240783a592e480780efe459 and fixed in 7.3 with commit 069403dff337feb192bfc70fb28ddc8a171e20c1

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-99144

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/633f586329bfd9843bf8acf86c95353f4c16e22d
	https://git.kernel.org/stable/c/069403dff337feb192bfc70fb28ddc8a171e20c1