🇰🇷 한글 설명
Linux 커널의 mpi3mr_sas_port_add() 함수에서 타겟 장치의 참조 횟수(refcount)가 누수되는 취약점이 해결되었습니다. 특정 오류 발생 시 획득한 장치 참조를 해제하지 않아 타겟 장치 구조체가 메모리에서 해제되지 않는 문제가 있었습니다.
💡 쉬운 설명
컴퓨터가 하드웨어 장치를 관리할 때 사용한 메모리를 제대로 돌려주지 않아 메모리가 계속 쌓이는 버그입니다. 이로 인해 시스템의 메모리가 점차 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
scsi: mpi3mr: Fix target device refcount leak in mpi3mr_sas_port_add()
mpi3mr_get_tgtdev_by_addr() increments the target device kref when it
returns a device. If a subsequent error triggers a goto out_fail after
the tgtdev reference is acquired, the reference is never released
because the out_fail path does not call mpi3mr_tgtdev_put(). This
prevents the target device structure from ever being freed.
Add a tgtdev put in the out_fail path, guarded by a NULL check since
tgtdev is only acquired for SAS_END_DEVICE types and the same cleanup
path is shared by earlier error cases where tgtdev is still NULL.
📍 영향받는 시스템
Linux kernel (mpi3mr SAS driver 사용 시스템)
⚔️ 공격 벡터
로컬 공격자가 특정 오류 상황을 유도하여 시스템 메모리 고갈(DoS)을 일으킬 수 있음
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 보안 업데이트 버전인지 확인