data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2026-64112 in the interactive tracker

CVE-2026-64112

rbd: eliminate a race in lock_dwork draining on unmap

7.8 EPSS 0.1% AV:L

Published 2026-07-19 (3 months ago) by the Linux kernel CNA. Subsystem drivers/block. Debian urgency: not yet assigned.

What to do, per Debian release

Debian's own status for CVE-2026-64112 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormvulnerable6.1.190-1No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication.
Debian 13trixiefixed6.12.94-1Update the kernel and reboot. Fixed in 6.12.94-1. A running kernel keeps the old code until the machine restarts.
Debian 14forkyfixed7.0.12-1Update the kernel and reboot. Fixed in 7.0.12-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed7.0.12-1Update the kernel and reboot. Fixed in 7.0.12-1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

Given how rbd_lock_add_request() and rbd_img_exclusive_lock() are written, lock_dwork may be (re)queued more than it's actually needed: for example in case a new I/O request comes in while we are in the middle of rbd_acquire_lock() on behalf of another I/O request. This is expected and with rbd_release_lock() preemptively canceling lock_dwork is benign under normal operation. A more problematic example is maybe_kick_acquire(): if (have_requests || delayed_work_pending(&rbd_dev->lock_dwork)) { dout("%s rbd_dev %p kicking lock_dwork\n", __func__, rbd_dev); mod_delayed_work(rbd_dev->task_wq, &rbd_dev->lock_dwork, 0); } It's not unrealistic for lock_dwork to get canceled right after delayed_work_pending() returns true and for mod_delayed_work() to requeue it right there anyway. This is a classic TOCTOU race. When it comes to unmapping the image, there is an implicit assumption of no self-initiated exclusive lock activity past the point of return from rbd_dev_image_unlock() which unlocks the lock if it happens to be held. This unlock is assumed to be final and lock_dwork (as well as all other exclusive lock tasks, really) isn't expected to get queued again. However, lock_dwork is canceled only in cancel_tasks_sync() (i.e. later in the unmap sequence) and on top of that the cancellation can get in effect nullified by maybe_kick_acquire(). This may result in rbd_acquire_lock() executing after rbd_dev_device_release() and rbd_dev_image_release() run and free and/or reset a bunch of things. One of the possible failure modes then is a violated rbd_assert(rbd_image_format_valid(rbd_dev->image_format)); in rbd_dev_header_info() which is called via rbd_dev_refresh() from rbd_post_acquire_action(). Redo exclusive lock task draining to provide saner semantics and try to meet the assumptions around rbd_dev_image_unlock().

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

drivers/block/rbd.c

What this is
RADOS BLOCK DEVICE (RBD)MAINTAINERS section matched on drivers/block/rbd.c · ceph-devel@vger.kernel.org · Supported
Kernel module
rbd

Check it on the machine

grep -w CONFIG_BLK_DEV_RBD /boot/config-$(uname -r)

Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.

lsmod | grep -w rbd

Prints a line if that module is loaded right now, and nothing if it is not. One that is not loaded can still be loaded later by anything that needs it.

Show whether Debian builds this, per release

Debian builds this as a loadable module. Every release below compiles it as a module on every flavour, so whether the code is in the running kernel depends on whether that module is loaded.

  • bookworm, trixie, forky, sidm
m
a loadable module on every flavour - check lsmod, can be blacklisted
Build switch
CONFIG_BLK_DEV_RBD

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages

Signals

Published
2026-07-19 (3 months ago)source
CVSS
7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsource recompute it
Attack vector
local (AV:L)source
EPSS
0.10%, higher than 0.8% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
not yet assignedsource
Subsystem
drivers/block

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
4.126.12.923427d7ae3833
4.126.18.349dcd4f5c99b4
4.127.0.119400efc76b42
4.127.19fc75b71fdd3

Why the CNA scored it this way

Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source

AV:LAttack vector, local
Exploitation requires writing to /sys/bus/rbd/remove (or the equivalent error-path teardown during map), which is a local sysfs syscall path; network-delivered Ceph lock notifications can assist the race but cannot complete exploitation without this local unmap action.
AC:LAttack complexity, low
The attacker controls both sides of the TOCTOU race by concurrently unmapping the device (sysfs remove) while driving lock activity through block I/O or lock-notification handling, making the race winnable with repeated attempts.
PR:LPrivileges required, low
Both map and unmap operations require CAP_SYS_ADMIN, which is obtainable by an unprivileged user via user namespaces (unshare -Urn); per kernel CNA guidance this is PR:L rather than PR:H.
UI:NUser interaction, none
No victim interaction is required; the attacker can trigger the race programmatically through concurrent sysfs unmap and I/O or lock-notification activity.
S:UScope, unchanged
Impact is confined to kernel memory corruption and crash on the host running the RBD client; it does not cross a VM, container, or IOMMU security boundary.
C:HConfidentiality impact, high
The bug allows rbd_acquire_lock() to operate on an rbd_device after rbd_dev_image_release() has freed and reset fields, constituting a use-after-free that can expose or dereference freed kernel heap data.
I:HIntegrity impact, high
Use-after-free on rbd_device and associated header structures provides memory corruption primitives that could be leveraged for arbitrary kernel writes or control-flow hijacking, not merely a clean crash.
A:HAvailability impact, high
A confirmed failure mode is rbd_assert() triggering BUG() (kernel panic), and the underlying UAF can also cause oops or hang during post-teardown lock acquisition.