resource: fix lost wakeup when waiting for a muxed region
Summary
| CVE | CVE-2026-138894 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-30 14:17:47 UTC |
| Updated | 2026-11-30 14:17:47 UTC |
| Description | 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
TASK_UNINTERRUPTIBLE even though the region it waits for is already free.
__request_region_locked() queues itself on muxed_resource_wait and drops
resource_lock before setting TASK_UNINTERRUPTIBLE, while
__release_region() wakes the queue after dropping the same lock. A wakeup
landing in between finds TASK_RUNNING, does not match TASK_NORMAL 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 PREEMPT_DYNAMIC 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 request_muxed_region() 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 resource_lock, as
prepare_to_wait() does: the releasing side needs resource_lock to unlink
the resource, so it cannot reach the wakeup before the state is published. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected 8b6d043b7ee2d1b819dc833d677ea2aead71a0c0 eae5341c7aedf629e72463162f84d64b92bf913a git |
Not specified |
| CNA |
Linux |
Linux |
affected 8b6d043b7ee2d1b819dc833d677ea2aead71a0c0 6fa7a245a6b3df2134b61ed00f19e24b7b33fac5 git |
Not specified |
| CNA |
Linux |
Linux |
affected 8b6d043b7ee2d1b819dc833d677ea2aead71a0c0 98d3eeea3ca04261283e206565868b1176bc4244 git |
Not specified |
| CNA |
Linux |
Linux |
affected 8b6d043b7ee2d1b819dc833d677ea2aead71a0c0 85487b21e1164f484f312f05b8a8fb3b98b15d25 git |
Not specified |
| CNA |
Linux |
Linux |
affected 8b6d043b7ee2d1b819dc833d677ea2aead71a0c0 415179d0ef2515a9541dd9f70536f89a1c454125 git |
Not specified |
| CNA |
Linux |
Linux |
affected 8b6d043b7ee2d1b819dc833d677ea2aead71a0c0 a1b937d0e196b32a6a99022b764f2c986e961838 git |
Not specified |
| CNA |
Linux |
Linux |
affected 8b6d043b7ee2d1b819dc833d677ea2aead71a0c0 60ea6ea084c60bb31c4980bf34b398e5ab35d3d9 git |
Not specified |
| CNA |
Linux |
Linux |
affected 8b6d043b7ee2d1b819dc833d677ea2aead71a0c0 405c00e43a9c72a0b9b318cc2d2e298386ffb58e git |
Not specified |
| CNA |
Linux |
Linux |
affected 2.6.35 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 2.6.35 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.10.275 5.10.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.15.226 5.15.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.1.193 6.1.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.6.163 6.6.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.117 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.63 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.4 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/98d3eeea3ca04261283e206565868b1176bc4244 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/eae5341c7aedf629e72463162f84d64b92bf913a |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/415179d0ef2515a9541dd9f70536f89a1c454125 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/6fa7a245a6b3df2134b61ed00f19e24b7b33fac5 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/85487b21e1164f484f312f05b8a8fb3b98b15d25 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/405c00e43a9c72a0b9b318cc2d2e298386ffb58e |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/a1b937d0e196b32a6a99022b764f2c986e961838 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/60ea6ea084c60bb31c4980bf34b398e5ab35d3d9 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.