CVE-2026-138894

resource: fix lost wakeup when waiting for a muxed region

Published Nov 30, 2026 CVSS 3.1 · 5.5 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability stems from a lost wakeup while waiting for a muxed region in the Linux kernel. A task can sleep indefinitely in TASK_UNINTERRUPTIBLE even after the requested region has become free, due to the release side waking the queue before the task state is published. The result is an unkillable, hung task that blocks the kernel’s i2c adapter bus lock, causing up to 27 other tasks to pile up behind it. This can lead to a denial‑of‑service condition, as authorised or unauthorised users who can read a world‑readable hwmon attribute may trigger the contention path, effectively freezing processes that hold the mutex. The bug was confirmed by reproducing the lost‑wakeup window in a two‑thread barrier test with an intentional delay, which caused 200 failures out of 200 runs before the patch and no failures after. No escalation to higher privileges is involved; the impact is primarily availability unless the hung task holds a critical resource that can affect system stability.

Affected Systems

The flaw exists in the Linux kernel source itself and affects all distributions running kernel versions that include the buggy __request_region_locked and __release_region implementations. Exact affected releases are not listed, but the issue was present before the 6.11 release, so any pre‑6.11 kernel or any kernel built from the original tree before the patch will be vulnerable. There is no vendor‑specific disabling vector noted, so the flaw is universal across the Linux kernel. The kernel code is common to all vendors, as evidenced by the vendor list referencing Linux:Linux twice and a generic CPE string for the Linux kernel.

Risk and Exploitability

The CVSS score is not disclosed, and the EPSS score is unavailable, but the vulnerability is not catalogued in CISA KEV. The risk of exploitation is moderate: the bug is a local denial‑of‑service that requires the ability to read a world‑readable hwmon attribute that uses a muxed region, which typically requires unprivileged user access. The exploit chain is straightforward – an attacker can repeatedly trigger the contention, cause tasks to sleep forever, and subsequently accumulate a backlog of blocked tasks on the system. Because the vulnerability can impact system availability and may be amplified by multiple concurrent users, administrators should treat it as a moderate‑severity issue, especially on multi‑user systems. The known attack vector is local and relies on a race between the resource lock holder and the wake‑up scheduler; thus kernel patches that correctly set the task state before dropping the lock are mandatory to eliminate the risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the commit fixing the lost wakeup in muxed regions, typically kernel 6.11 or newer.
  • Validate that the running kernel contains the patch by checking that the __request_region_locked function sets the task state before releasing the resource_lock.
  • For distributions that cannot upgrade immediately, restrict or remove write access to world‑readable hwmon attributes that trigger muxed region contention, and monitor for TASK_UNINTERRUPTIBLE state hangs in the system logs.

Generated by OpenCVE AI on November 30, 2026 at 17:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-821
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-362
CWE-667
Type Values Removed Values Added
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.
Title resource: fix lost wakeup when waiting for a muxed region
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-667

    Improper Locking

  • CWE-821

    Incorrect Synchronization

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:25 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:25 PM