🇰🇷 한글 설명
Linux 커널의 scsi: lpfc 드라이버에서 FLOGI 또는 PLOGI 명령 실패 시 노드 참조 횟수를 잘못 감소시켜 발생하는 취약점입니다. 이로 인해 dev-loss-evt 작업이 완료될 때 이미 해제된 노드에 접근하게 되어 Use-After-Free 및 Null Pointer Dereference가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품을 연결하는 과정에서 오류가 발생했을 때, 이미 삭제된 정보를 다시 사용하려고 시도하여 시스템이 멈추거나 오류가 발생하는 문제입니다. 이 과정에서 메모리 관리 오류가 발생하여 시스템 안정성에 영향을 줄 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
scsi: lpfc: Fix null pointer dereference after failing to issue FLOGI and PLOGI
If lpfc_issue_els_flogi() fails and returns non-zero status, the node
reference count is decremented to trigger the release of the nodelist
structure. However, if there is a prior registration or dev-loss-evt work
pending, the node may be released prematurely. When dev-loss-evt
completes, the released node is referenced causing a use-after-free null
pointer dereference.
Similarly, when processing non-zero ELS PLOGI completion status in
lpfc_cmpl_els_plogi(), the ndlp flags are checked for a transport
registration before triggering node removal. If dev-loss-evt work is
pending, the node may be released prematurely and a subsequent call to
lpfc_dev_loss_tmo_handler() results in a use after free ndlp dereference.
Add test for pending dev-loss before decrementing the node reference count
for FLOGI, PLOGI, PRLI, and ADISC handling.
📍 영향받는 시스템
Linux kernel (scsi: lpfc driver 포함 버전)
⚔️ 공격 벡터
특수하게 조작된 SCSI 명령(FLOGI, PLOGI 등)을 통해 드라이버의 오류 처리 로직을 유도하여 발생
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인