CVE-2024-57946

Medium

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.

Package Linux Kernel
Published 2025-01-21
Last modified 2025-11-03
CVSS version 3.1
Patch available
Yes

CVSS 3.1 score

5.5

out of 10
Medium
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness type

CWE-667

CVE-2024-57946 is a Improper Locking vulnerability

What is Improper Locking?

The product does not properly acquire or release a lock, which can lead to unexpected behaviour. Learn more on MITRE CWE

Affected versions

Linux kernel versions 5.4.270, 5.10.211, 5.15.150, 6.1.80, 6.6.19, 4.19.308, 6.7.7, 6.8 and later are affected. Fixed in 5.4.289, 5.10.233, 5.15.176, 6.1.123, 6.6.69, 6.12.8, 6.13 and their respective stable series.

Affected from
≥ 5.4.270 ≥ 5.10.211 ≥ 5.15.150 ≥ 6.1.80 ≥ 6.6.19 ≥ 4.19.308 ≥ 6.7.7 ≥ 6.8
Fixed in
✓ 5.4.289 5.4.x ✓ 5.10.233 5.10.x ✓ 5.15.176 5.15.x ✓ 6.1.123 6.1.x ✓ 6.6.69 6.6.x ✓ 6.12.8 6.12.x ✓ 6.13

References

The following references provide additional information about CVE-2024-57946 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.

Frequently asked questions

  • What is CVE-2024-57946?

    CVE-2024-57946 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 , classified as an Improper Locking flaw (CWE-667) . It affects Linux kernel versions from 5.4.270 onward and has been patched in 5.4.289, 5.10.233, 5.15.176 and others. CVE-2024-57946 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • What is the CVSS score for CVE-2024-57946?

    CVE-2024-57946 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H .

  • Is there a patch available for CVE-2024-57946?

    Yes — CVE-2024-57946 has been patched. Fixed versions include 5.4.289, 5.10.233, 5.15.176 and others. If you are running Linux kernel 5.4.270 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2024-57946 actively exploited?

    No — CVE-2024-57946 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

  • What is Improper Locking (CWE-667)?

    The product does not properly acquire or release a lock, which can lead to unexpected behaviour. View CWE-667 on MITRE CWE →