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

Published Jan 21, 2025
·
Updated

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 bioqueueenter() 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 virtblkfreeze().

[1] https://lore.kernel.org/linux-block/ca16370e-d646-4eee-b9cc-87277c89c43c@samsung.com/

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.

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

19 affected componentsFixes available
Linux Kernel
Linux Linux kernel<5.4.289
Linux Linux kernel>=5.5<5.10.233
Linux Linux kernel>=5.11<5.15.176
Linux Linux kernel>=5.16<6.1.123
Linux Linux kernel>=6.2<6.6.69
Linux Linux kernel>=6.7<6.12.8
Linux Linux kernel=6.13-rc1
Linux Linux kernel=6.13-rc2
Linux Linux kernel=6.13-rc3
Linux Linux kernel=6.13-rc4
Linux Linux kernel=6.13-rc5
Linux Linux kernel=6.13-rc6
debian/linux<=5.10.223-1
5.10.234-16.1.129-16.1.135-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1
Microsoft cbl2 kernel 5.15.173.1-2<5.15.176.3-3
5.15.176.3-3
Microsoft azl3 kernel 6.6.64.2-9<6.6.78.1-3
6.6.78.1-3
Microsoft azl3 kernel 6.6.78.1-3<6.6.78.1-3
6.6.78.1-3
Microsoft cbl2 kernel 5.15.176.3-3<5.15.176.3-3
5.15.176.3-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade debian/linux-6.1 to a version that resolves this vulnerability.

    Fixed in 6.1.129-1~deb11u1
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.15.176.3-3
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.78.1-3
  5. Upgrade

    Upgrade Linux kernel virtio-blk to a version that resolves this vulnerability.

    Patch 4ce6e2db00de
  6. Configuration

    Change virtio-blk suspend PM callback behavior to keep the virtqueue quiesced during suspend instead of keeping it frozen for the entire suspend context; implement the fix described as 'virtio-blk: don't keep queue frozen during system suspend' (Commit 4ce6e2db00de).

    virtio-blk PM callbacks (system suspend) queue handling mode during suspend = replace queue freeze with queue quiesce/keep queue quiesced during suspend (previous behavior)

Event History

Jan 21, 2025
CVE Published
via MITRE·12:22 PM
Data Sourced
via MITRE·12:22 PM
Description
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 8, 2025
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
Description
Updated
via Microsoft·08:00 AM
DescriptionSeverity
Mar 31, 2025
Data Sourced
via Launchpad·06:51 PM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·06:56 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-57946?

CVE-2024-57946 has not been assigned a CVSS score, but it showcases a critical oversight in queue management during system suspend in the Linux kernel.

2

How do I fix CVE-2024-57946?

To remediate CVE-2024-57946, update your Linux kernel to the latest patch version that addresses this vulnerability.

3

What versions of the Linux kernel are affected by CVE-2024-57946?

CVE-2024-57946 affects specific versions of the Linux kernel that implement virtio-blk functionality, particularly prior to the fix release.

4

What are the potential impacts of CVE-2024-57946?

CVE-2024-57946 could potentially lead to data loss or corruption during system suspension due to improper handling of queued requests.

5

Is there a workaround for CVE-2024-57946?

As a workaround for CVE-2024-57946, consider avoiding system suspensions until a patch can be applied.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203