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

CVE-2022-50215 scsi: sg: Allow waiting for commands to complete on removed device

설명

In the Linux kernel, the following vulnerability has been resolved: scsi: sg: Allow waiting for commands to complete on removed device When a SCSI device is removed while in active use, currently sg will immediately return -ENODEV on any attempt to wait for active commands that were sent before the removal. This is problematic for commands that use SG_FLAG_DIRECT_IO since the data buffer may still be in use by the kernel when userspace frees or reuses it after getting ENODEV, leading to corrupted userspace memory (in the case of READ-type commands) or corrupted data being sent to the device (in the case of WRITE-type commands). This has been seen in practice when logging out of a iscsi_tcp session, where the iSCSI driver may still be processing commands after the device has been marked for removal. Change the policy to allow userspace to wait for active sg commands even when the device is being removed. Return -ENODEV only when there are no more responses to read.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 2.6.28.10 이상 2.6.29 미만
    • 2.6.29.2 이상 2.6.30 미만
    • 2.6.30

    해결 버전

    • 2.6.29 이상
    • 2.6.30 이상
    • 2.6.30 미만
    • 4.9.326 이상
    • 4.14.291 이상
    • 4.19.256 이상
    • 5.4.211 이상
    • 5.10.137 이상
    외 3개 구간 펼치기
    • 5.15.61 이상
    • 5.18.18 이상
    • 5.19.2 이상

참고 자료 9건

‹ 목록

점검 지원 범위 문의

도입 문의