{"id":"CVE-2026-138894","aliases":["CVE-2026-138894"],"related":[],"kind":"vulnerability","state":"published","title":"resource: fix lost wakeup when waiting for a muxed region","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nresource: fix lost wakeup when waiting for a muxed region\n\nA task waiting for a muxed region can sleep forever in\nTASK_UNINTERRUPTIBLE even though the region it waits for is already free. \n__request_region_locked() queues itself on muxed_resource_wait and drops\nresource_lock before setting TASK_UNINTERRUPTIBLE, while\n__release_region() wakes the queue after dropping the same lock.  A wakeup\nlanding in between finds TASK_RUNNING, does not match TASK_NORMAL and is\ndiscarded; callers hold a muxed region only across a bounded transaction,\nso no further release is coming.  The task is unkillable and its caller\nnever returns.\n\nThe window is one store wide, but an interrupt is enough to hold the\nwaiter in it, and the machine this was seen on runs PREEMPT_DYNAMIC in its\nvoluntary default.  Since v6.11 spd5118 exports the DDR5 sensors of AMD\nboards through i2c-piix4, which takes a muxed region per SMBus\ntransaction; a third of the in-tree users of request_muxed_region() are\nhwmon drivers, so reading a world-readable attribute is all an\nunprivileged user needs to drive the contention.  The blocked task sleeps\nholding the i2c adapter bus lock, and 27 more piled up behind it.\n\nReproduced by building a kernel with the two orderings selectable at\nruntime and a 2ms delay inside the window.  Switching only that knob, a\ntwo-thread barriered reproducer loses the wakeup 200 times out of 200\nbefore the fix and 0 out of 200 after it; without the delay it goes 20000\ntimes through the wait path and loses none.\n\nFix it by setting the task state before dropping resource_lock, as\nprepare_to_wait() does: the releasing side needs resource_lock to unlink\nthe resource, so it cannot reach the wakeup before the state is published.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nresource: fix lost wakeup when waiting for a muxed region\n\nA task waiting for a muxed region can sleep forever in\nTASK_UNINTERRUPTIBLE even though the region it waits for is already free. \n__request_region_locked() queues itself on muxed_resource_wait and drops\nresource_lock before setting TASK_UNINTERRUPTIBLE, while\n__release_region() wakes the queue after dropping the same lock.  A wakeup\nlanding in between finds TASK_RUNNING, does not match TASK_NORMAL and is\ndiscarded; callers hold a muxed region only across a bounded transaction,\nso no further release is coming.  The task is unkillable and its caller\nnever returns.\n\nThe window is one store wide, but an interrupt is enough to hold the\nwaiter in it, and the machine this was seen on runs PREEMPT_DYNAMIC in its\nvoluntary default.  Since v6.11 spd5118 exports the DDR5 sensors of AMD\nboards through i2c-piix4, which takes a muxed region per SMBus\ntransaction; a third of the in-tree users of request_muxed_region() are\nhwmon drivers, so reading a world-readable attribute is all an\nunprivileged user needs to drive the contention.  The blocked task sleeps\nholding the i2c adapter bus lock, and 27 more piled up behind it.\n\nReproduced by building a kernel with the two orderings selectable at\nruntime and a 2ms delay inside the window.  Switching only that knob, a\ntwo-thread barriered reproducer loses the wakeup 200 times out of 200\nbefore the fix and 0 out of 200 after it; without the delay it goes 20000\ntimes through the wait path and loses none.\n\nFix it by setting the task state before dropping resource_lock, as\nprepare_to_wait() does: the releasing side needs resource_lock to unlink\nthe resource, so it cannot reach the wakeup before the state is published.","source":"cvelist"}],"published":"2026-11-30T13:25:58.668Z","modified":"2026-11-30T14:17:47.230Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8b6d043b7ee2d1b819dc833d677ea2aead71a0c0","fixed":"eae5341c7aedf629e72463162f84d64b92bf913a","status":"affected"},{"type":"git","introduced":"8b6d043b7ee2d1b819dc833d677ea2aead71a0c0","fixed":"6fa7a245a6b3df2134b61ed00f19e24b7b33fac5","status":"affected"},{"type":"git","introduced":"8b6d043b7ee2d1b819dc833d677ea2aead71a0c0","fixed":"98d3eeea3ca04261283e206565868b1176bc4244","status":"affected"},{"type":"git","introduced":"8b6d043b7ee2d1b819dc833d677ea2aead71a0c0","fixed":"85487b21e1164f484f312f05b8a8fb3b98b15d25","status":"affected"},{"type":"git","introduced":"8b6d043b7ee2d1b819dc833d677ea2aead71a0c0","fixed":"415179d0ef2515a9541dd9f70536f89a1c454125","status":"affected"},{"type":"git","introduced":"8b6d043b7ee2d1b819dc833d677ea2aead71a0c0","fixed":"a1b937d0e196b32a6a99022b764f2c986e961838","status":"affected"},{"type":"git","introduced":"8b6d043b7ee2d1b819dc833d677ea2aead71a0c0","fixed":"60ea6ea084c60bb31c4980bf34b398e5ab35d3d9","status":"affected"},{"type":"git","introduced":"8b6d043b7ee2d1b819dc833d677ea2aead71a0c0","fixed":"405c00e43a9c72a0b9b318cc2d2e298386ffb58e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.35","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.35","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/eae5341c7aedf629e72463162f84d64b92bf913a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6fa7a245a6b3df2134b61ed00f19e24b7b33fac5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98d3eeea3ca04261283e206565868b1176bc4244","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85487b21e1164f484f312f05b8a8fb3b98b15d25","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/415179d0ef2515a9541dd9f70536f89a1c454125","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a1b937d0e196b32a6a99022b764f2c986e961838","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/60ea6ea084c60bb31c4980bf34b398e5ab35d3d9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/405c00e43a9c72a0b9b318cc2d2e298386ffb58e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138894","url":"https://www.cve.org/CVERecord?id=CVE-2026-138894","licence":"CVE Terms of Use","modified":"2026-11-30T13:25:58.668Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138894","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138894","licence":"Public domain","modified":"2026-11-30T14:17:47.230Z"}],"updatedAt":"2026-11-30T14:32:33.829Z","epss":{"score":0.0022,"percentile":0.13411,"date":"2026-12-01T12:00:22.000Z"}}