kcve.ai취약점 정보 · 내 자산 확인

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

설명

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/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.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 5.4.270 이상 5.4.289 미만
    • 5.10.211 이상 5.10.233 미만
    • 5.15.150 이상 5.15.176 미만
    • 6.1.80 이상 6.1.123 미만
    • 6.6.19 이상 6.6.69 미만
    • 4.19.308 이상 4.20 미만
    • 6.7.7 이상 6.8 미만
    • 6.8

    해결 버전

    • 5.4.289 이상
    • 5.10.233 이상
    • 5.15.176 이상
    • 6.1.123 이상
    • 6.6.69 이상
    • 4.20 이상
    • 6.8 이상
    • 6.8 미만
    외 1개 구간 펼치기
    • 6.12.8 이상

참고 자료 7건

‹ 목록

점검 지원 범위 문의

도입 문의