# CVE-2025-68756: block: Use RCU in blk\_mq\_\[un\]quiesce\_tagset() instead of set-\>tag\_list\_lock

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2026-01-05T09:32:29.824Z
- **Modified:** 2026-10-14T19:10:00.297Z

## Who should check

- Anyone running Linux \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< ca8764c0ea1fb825f17f19704af55e9e02c9f768; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< 3baeec23a82e7ee9691f434c6ab0ab1387326108; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< 6e8d363786765a81e35083e0909e076796468edf; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< ef0cd7b694928573f6569e61c14f5f059253162e; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< 59e25ef2b413c72da6686d431e7759302cfccafa
- Anyone running Linux 6.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

block: Use RCU in blk\_mq\_\[un\]quiesce\_tagset() instead of set-\>tag\_list\_lock

blk\_mq\_{add,del}\_queue\_tag\_set() functions add and remove queues from
tagset, the functions make sure that tagset and queues are marked as
shared when two or more queues are attached to the same tagset.
Initially a tagset starts as unshared and when the number of added
queues reaches two, blk\_mq\_add\_queue\_tag\_set() marks it as shared along
with all the queues attached to it. When the number of attached queues
drops to 1 blk\_mq\_del\_queue\_tag\_set() need to mark both the tagset and
the remaining queues as unshared.

Both functions need to freeze current queues in tagset before setting on
unsetting BLK\_MQ\_F\_TAG\_QUEUE\_SHARED flag. While doing so, both functions
hold set-\>tag\_list\_lock mutex, which makes sense as we do not want
queues to be added or deleted in the process. This used to work fine
until commit 98d81f0df70c ("nvme: use blk\_mq\_\[un\]quiesce\_tagset")
made the nvme driver quiesce tagset instead of quiscing individual
queues. blk\_mq\_quiesce\_tagset() does the job and quiesce the queues in
set-\>tag\_list while holding set-\>tag\_list\_lock also.

This results in deadlock between two threads with these stacktraces:

  \_\_schedule+0x47c/0xbb0
  ? timerqueue\_add+0x66/0xb0
  schedule+0x1c/0xa0
  schedule\_preempt\_disabled+0xa/0x10
  \_\_mutex\_lock.constprop.0+0x271/0x600
  blk\_mq\_quiesce\_tagset+0x25/0xc0
  nvme\_dev\_disable+0x9c/0x250
  nvme\_timeout+0x1fc/0x520
  blk\_mq\_handle\_expired+0x5c/0x90
  bt\_iter+0x7e/0x90
  blk\_mq\_queue\_tag\_busy\_iter+0x27e/0x550
  ? \_\_blk\_mq\_complete\_request\_remote+0x10/0x10
  ? \_\_blk\_mq\_complete\_request\_remote+0x10/0x10
  ? \_\_call\_rcu\_common.constprop.0+0x1c0/0x210
  blk\_mq\_timeout\_work+0x12d/0x170
  process\_one\_work+0x12e/0x2d0
  worker\_thread+0x288/0x3a0
  ? rescuer\_thread+0x480/0x480
  kthread+0xb8/0xe0
  ? kthread\_park+0x80/0x80
  ret\_from\_fork+0x2d/0x50
  ? kthread\_park+0x80/0x80
  ret\_from\_fork\_asm+0x11/0x20

  \_\_schedule+0x47c/0xbb0
  ? xas\_find+0x161/0x1a0
  schedule+0x1c/0xa0
  blk\_mq\_freeze\_queue\_wait+0x3d/0x70
  ? destroy\_sched\_domains\_rcu+0x30/0x30
  blk\_mq\_update\_tag\_set\_shared+0x44/0x80
  blk\_mq\_exit\_queue+0x141/0x150
  del\_gendisk+0x25a/0x2d0
  nvme\_ns\_remove+0xc9/0x170
  nvme\_remove\_namespaces+0xc7/0x100
  nvme\_remove+0x62/0x150
  pci\_device\_remove+0x23/0x60
  device\_release\_driver\_internal+0x159/0x200
  unbind\_store+0x99/0xa0
  kernfs\_fop\_write\_iter+0x112/0x1e0
  vfs\_write+0x2b1/0x3d0
  ksys\_write+0x4e/0xb0
  do\_syscall\_64+0x5b/0x160
  entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53

The top stacktrace is showing nvme\_timeout() called to handle nvme
command timeout. timeout handler is trying to disable the controller and
as a first step, it needs to blk\_mq\_quiesce\_tagset() to tell blk-mq not
to call queue callback handlers. The thread is stuck waiting for
set-\>tag\_list\_lock as it tries to walk the queues in set-\>tag\_list.

The lock is held by the second thread in the bottom stack which is
waiting for one of queues to be frozen. The queue usage counter will
drop to zero after nvme\_timeout() finishes, and this will not happen
because the thread will wait for this mutex forever.

Given that \[un\]quiescing queue is an operation that does not need to
sleep, update blk\_mq\_\[un\]quiesce\_tagset() to use RCU instead of taking
set-\>tag\_list\_lock, update blk\_mq\_{add,del}\_queue\_tag\_set() to use RCU
safe list operations. Also, delete INIT\_LIST\_HEAD(&q-\>tag\_set\_list)
in blk\_mq\_del\_queue\_tag\_set() because we can not re-initialize it while
the list is being traversed under RCU. The deleted queue will not be
added/deleted to/from a tagset and it will be freed in blk\_free\_queue()
after the end of RCU grace period.

## Affected and fixed versions

- Linux: \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< ca8764c0ea1fb825f17f19704af55e9e02c9f768; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< 3baeec23a82e7ee9691f434c6ab0ab1387326108; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< 6e8d363786765a81e35083e0909e076796468edf; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< ef0cd7b694928573f6569e61c14f5f059253162e; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< 59e25ef2b413c72da6686d431e7759302cfccafa (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 59e25ef2b413c72da6686d431e7759302cfccafa or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-68756. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68756.md
Affected: Linux >= 98d81f0df70ce6fc48517d938026e3c684b9051a, < ca8764c0ea1fb825f17f19704af55e9e02c9f768; >= 98d81f0df70ce6fc48517d938026e3c684b9051a, < 3baeec23a82e7ee9691f434c6ab0ab1387326108; >= 98d81f0df70ce6fc48517d938026e3c684b9051a, < 6e8d363786765a81e35083e0909e076796468edf; >= 98d81f0df70ce6fc48517d9…
Fixed in: Linux 3baeec23a82e7ee9691f434c6ab0ab1387326108, Linux 6e8d363786765a81e35083e0909e076796468edf, Linux 59e25ef2b413c72da6686d431e7759302cfccafa

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-68756 being exploited?

There is no confirmed exploitation: CVE-2025-68756 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-68756?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68756?

Linux \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< ca8764c0ea1fb825f17f19704af55e9e02c9f768; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< 3baeec23a82e7ee9691f434c6ab0ab1387326108; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< 6e8d363786765a81e35083e0909e076796468edf; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< ef0cd7b694928573f6569e61c14f5f059253162e; \>= 98d81f0df70ce6fc48517d938026e3c684b9051a, \< 59e25ef2b413c72da6686d431e7759302cfccafa; Linux 6.2.

### Is there a fix for CVE-2025-68756?

Yes. Fixed in Linux 3baeec23a82e7ee9691f434c6ab0ab1387326108, Linux 6e8d363786765a81e35083e0909e076796468edf, Linux 59e25ef2b413c72da6686d431e7759302cfccafa. Upgrade Linux to 59e25ef2b413c72da6686d431e7759302cfccafa or later.

### How do I check if I'm affected by CVE-2025-68756?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ca8764c0ea1fb825f17f19704af55e9e02c9f768>
- other: <https://git.kernel.org/stable/c/3baeec23a82e7ee9691f434c6ab0ab1387326108>
- other: <https://git.kernel.org/stable/c/6e8d363786765a81e35083e0909e076796468edf>
- other: <https://git.kernel.org/stable/c/ef0cd7b694928573f6569e61c14f5f059253162e>
- other: <https://git.kernel.org/stable/c/59e25ef2b413c72da6686d431e7759302cfccafa>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-68756>

HTML: <https://flawdb.com/CVE-2025-68756> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-68756>
