CVE-2024-57946
MediumIn 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.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-667CVE-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.
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.
-
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/12c0ddd6c551c1e438b087f874b4f1223a75f7ea
-
PatchKernel patch commithttps://git.kernel.org/stable/c/6dea8e3de59928974bf157dd0499d3958d744ae4
-
PatchKernel patch commithttps://git.kernel.org/stable/c/7678abee0867e6b7fb89aa40f6e9f575f755fb37
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 →