CVE-2026-99256

dm cache: fix issue with background work locking

Published Nov 3, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

dm cache: fix issue with background work locking

dm cache used a rw_semaphore for background_work_lock. Write locks on
rw_semaphores have strict owner semantics, but there was no guarantee
that the process that locked background_work_lock was the same process
that unlocked it. This can be easily seen using a kernel compiled with
CONFIG_DEBUG_RWSEMS. Given a dm cache device <cache>, run: 'dmsetup
suspend <cache> && dmsetup resume <cache>'. This will trigger a kernel
warning:

DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE))

triggered by cache_resume(). To fix this, switch from a rw_semaphore to
a spinlock and a wait queue. dm cache already has a wait queue and
associated counter, migration_wait and nr_allocated_migrations, that was
getting woken up when background work was getting completed, but wasn't
actually used by anything. This is replaced by the background_work queue
and counter.

Analysis

AI-generated

Technical impact

The dm cache module in the Linux kernel used a read–write semaphore for a background work lock but did not guarantee that the current process was the lock owner when releasing it. This misuse of ownership semantics can trigger a race condition that manifests as a kernel warning under CONFIG_DEBUG_RWSEMS when a cache device is suspended and resumed. The race can corrupt internal kernel state, leading to system instability or a crash, but it does not disclose sensitive data or provide remote code execution.

Affected Systems

All installations of the Linux kernel that include the dm cache module and are built before the patch that replaces the rw_semaphore with a spinlock and wait queue are affected. This covers every Linux distribution kernel that has not yet been updated to a release containing the background work lock fix. No explicit kernel version or branch is specified in the advisory.

Risk and Exploitability

The CVSS score of 4.4 indicates a medium baseline severity, while the EPSS score of <1% signals a low likelihood of exploitation. The vulnerability is not listed in CISA’s KEV catalog. An attacker with local or privileged access to dmsetup can trigger the race by issuing suspend and resume commands; however, there is no publicly known exploit that leverages the warning for further compromise. The threat remains primarily one of potential kernel instability rather than data breach or remote execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the dm cache background‑work lock fix.
  • If an immediate kernel update is not possible, rebuild or backport the kernel source applying the commit changes that replace the rw_semaphore with a spinlock and wait queue, ensuring the ownership semantics are correctly enforced.
  • As a temporary measure, disable CONFIG_DEBUG_RWSEMS or avoid using dmsetup suspend/resume on older kernels; note that this does not eliminate the underlying race condition.

Generated by OpenCVE AI on November 5, 2026 at 16:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4904-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-9166-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9167-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9173-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9167-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9173-2 Linux kernel vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Weaknesses CWE-413
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: dm cache: fix issue with background work locking dm cache used a rw_semaphore for background_work_lock. Write locks on rw_semaphores have strict owner semantics, but there was no guarantee that the process that locked background_work_lock was the same process that unlocked it. This can be easily seen using a kernel compiled with CONFIG_DEBUG_RWSEMS. Given a dm cache device <cache>, run: 'dmsetup suspend <cache> && dmsetup resume <cache>'. This will trigger a kernel warning: DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)) triggered by cache_resume(). To fix this, switch from a rw_semaphore to a spinlock and a wait queue. dm cache already has a wait queue and associated counter, migration_wait and nr_allocated_migrations, that was getting woken up when background work was getting completed, but wasn't actually used by anything. This is replaced by the background_work queue and counter.
Title dm cache: fix issue with background work locking
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-413

    Improper Resource Locking

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 3, 2026, 11:40 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 3, 2026, 12:17 PM
Modified
Nov 3, 2026, 12:17 PM
Severity
Moderate
Public date
Nov 3, 2026, 11:25 AM