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

Look up another CVE · open CVE-2023-54088 in the interactive tracker

CVE-2023-54088

blk-cgroup: hold queue_lock when removing blkg->q_node

7.8 EPSS 0.2% AV:L

Published 2025-12-24 (10 months ago) by the Linux kernel CNA. Subsystem block. Debian urgency: not yet assigned.

What to do, per Debian release

Debian's own status for CVE-2023-54088 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.4.13-1Update the kernel and reboot. Fixed in 6.4.13-1. A running kernel keeps the old code until the machine restarts.
Debian 14forkyfixed6.4.13-1Update the kernel and reboot. Fixed in 6.4.13-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed6.4.13-1Update the kernel and reboot. Fixed in 6.4.13-1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

When blkg is removed from q->blkg_list from blkg_free_workfn(), queue_lock has to be held, otherwise, all kinds of bugs(list corruption, hard lockup, ..) can be triggered from blkg_destroy_all().

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.

block/blk-cgroup.c

What this is
CONTROL GROUP - BLOCK IO CONTROLLER (BLKIO)MAINTAINERS section matched on block/blk-cgroup.c · cgroups@vger.kernel.org

Check it on the machine

grep -w CONFIG_BLK_CGROUP /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.

Show whether Debian builds this, per release

Debian builds this code. Every release below compiles the affected file into the kernels it ships.

  • bookworm, trixie, forky, sidy
y
built into the kernel image on every flavour - only a patch removes it
Build switch
CONFIG_BLK_CGROUP

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
2025-12-24 (10 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.17%, higher than 5.4% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
not yet assignedsource
Subsystem
block

Upstream fixes

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

IntroducedFixed inCommit
6.1.166.1.17b5dae1cd0d83
6.2.36.2.4083b58373463
6.36.4.12cd4ffdf56791
6.36.5c164c7bc9775

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
The bug is in the block cgroup layer (block/blk-cgroup.c) and is reached only through local operations — cgroup v2 mkdir/rmdir, block I/O to a device, and writes to io.* cgroup control files or disk teardown. No network-facing code path touches q->blkg_list.
AC:LAttack complexity, low
The attacker drives both sides of the race: cgroup rmdir plus prior I/O queues many blkg_free_workfn() instances that do the unlocked list_del_init(&blkg->q_node), while a concurrent io.latency write (blk_iolatency_init -> blkcg_activate_policy) or disk teardown (blkg_destroy_all) walks q->blkg_list under queue_lock only. The window can be widened arbitrarily by creating thousands of blkgs and freeing them in bulk, and pd_free_fn() work inside the mutex lengthens it further.
PR:LPrivileges required, low
An unprivileged local user suffices in the standard deployment where a cgroup v2 subtree is delegated (systemd user@.service, rootless containers): the user owns the io.* files in cgroups they create, so they can create/destroy blkgs and trigger policy activation. No real root or CAP_SYS_ADMIN in the init namespace is needed.
UI:NUser interaction, none
The race is triggered entirely by the attacker's own processes issuing I/O and manipulating their cgroups; no victim action is required.
S:UScope, unchanged
Corruption stays within the kernel's own security authority — this is a standard kernel memory-corruption/privilege-escalation primitive with no crossing of a VM, IOMMU, or hypervisor boundary.
C:HConfidentiality impact, high
The unsynchronized list_del_init() lets list_for_each_entry_safe() in blkg_destroy_all() and the walkers in blkcg_activate_policy() follow stale next pointers into a blkcg_gq that blkg_free_workfn() then kfree()s, so the kernel reads and dereferences attacker-sprayable reclaimed slab contents — a use-after-free read that yields an arbitrary kernel-memory disclosure primitive.
I:HIntegrity impact, high
After the list is corrupted the kernel writes through the dangling entry: blkg->pd[pol->plid] = pd, pd->online = false, radix_tree_delete(), hlist_del_init_rcu(), rcu_assign_pointer(blkcg->blkg_hint, NULL) and percpu_ref_kill() all operate on freed/reallocated memory, giving controlled pointer writes and indirect calls suitable for privilege escalation.
A:HAvailability impact, high
The commit message states that list corruption and hard lockup are directly triggerable from blkg_destroy_all(); a corrupted doubly-linked list walked under spin_lock_irq loops forever or oopses, panicking the machine.