CVE Database›Document archive›CVE-2024-57946

CVE-2024-57946

kernel: virtio-blk: don't keep queue frozen during system suspend

Loading…

Severity

Moderate

Red Hat Product Security

4.4

CVSS 3.1

Review impact separately from score.

Published · January 21, 2025

Updated · October 30, 2026

Description

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

virtio-blk: don't keep queue frozen during system suspend

Commit 4ce6e2db00de ("virtio-blk: Ensure no requests in virtqueues before deleting vqs.") replaces queue quiesce with queue freeze in virtio-blk's PM callbacks. And the motivation is to drain inflight IOs before suspending.

block layer's queue freeze looks very handy, but it is also easy to cause deadlock, such as, any attempt to call into bio_queue_enter() may run into deadlock if the queue is frozen in current context. There are all kinds of ->suspend() called in suspend context, so keeping queue frozen in the whole suspend context isn't one good idea. And Marek reported lockdep warning[1] caused by virtio-blk's freeze queue in virtblk_freeze().

[1] https://lore.kernel.org/linux-block/[email protected]/

Given the motivation is to drain in-flight IOs, it can be done by calling freeze & unfreeze, meantime restore to previous behavior by keeping queue quiesced during suspend.

Statement

This vulnerability is rated as Moderate severity because triggering the deadlock requires elevated privileges to initiate a system suspend operation, limiting the impact to a local denial of service. The issue affects virtual guest systems utilizing virtio-blk devices during system suspend or power management transitions. Because system suspend is rarely performed in enterprise server and cloud deployments, and normal storage operations remain unaffected outside of suspend workflows, the operational exposure is substantially minimized.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 4.4
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

CWE-667 · Improper Locking