CVE-2026-138894: resource: fix lost wakeup when waiting for a muxed region
In the Linux kernel, the following vulnerability has been resolved:
resource: fix lost wakeup when waiting for a muxed region
A task waiting for a muxed region can sleep forever in TASKUNINTERRUPTIBLE even though the region it waits for is already free. requestregionlocked() queues itself on muxedresourcewait and drops resourcelock before setting TASKUNINTERRUPTIBLE, while releaseregion() wakes the queue after dropping the same lock. A wakeup landing in between finds TASKRUNNING, does not match TASKNORMAL and is discarded; callers hold a muxed region only across a bounded transaction, so no further release is coming. The task is unkillable and its caller never returns.
The window is one store wide, but an interrupt is enough to hold the waiter in it, and the machine this was seen on runs PREEMPTDYNAMIC in its voluntary default. Since v6.11 spd5118 exports the DDR5 sensors of AMD boards through i2c-piix4, which takes a muxed region per SMBus transaction; a third of the in-tree users of requestmuxedregion() are hwmon drivers, so reading a world-readable attribute is all an unprivileged user needs to drive the contention. The blocked task sleeps holding the i2c adapter bus lock, and 27 more piled up behind it.
Reproduced by building a kernel with the two orderings selectable at runtime and a 2ms delay inside the window. Switching only that knob, a two-thread barriered reproducer loses the wakeup 200 times out of 200 before the fix and 0 out of 200 after it; without the delay it goes 20000 times through the wait path and loses none.
Fix it by setting the task state before dropping resourcelock, as preparetowait() does: the releasing side needs resourcelock to unlink the resource, so it cannot reach the wakeup before the state is published.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
In Linux kernel __request_region_locked(), set the task state before dropping resource_lock.
Event History
Frequently Asked Questions
Who can realistically trigger this issue?
On affected systems where a muxed region is used by a world-readable hardware-monitoring attribute, an unprivileged user can trigger contention simply by reading that attribute. The described example is DDR5 sensor access on AMD boards through i2c-piix4 and spd5118, available since v6.11.
What conditions are needed for exploitation?
A task must be waiting for a muxed region while another task releases that region during the narrow interval before the waiter enters TASK_UNINTERRUPTIBLE. An interrupt can prolong this interval enough for the lost wakeup to occur.
What is the operational impact if a system is affected?
The waiting task can remain indefinitely in TASK_UNINTERRUPTIBLE even after the region is free, making it unkillable. Its caller never returns because no later release may occur to wake it.
Does the reported configuration involve nondefault scheduling behavior?
No. The issue was observed on a machine using PREEMPT_DYNAMIC in its voluntary default mode.