🇰🇷 한글 설명
Linux 커널의 PCI 엔드포인트 MSI 할당 과정에서 오류 발생 시 메모리 해제 후에도 포인터가 남아 있어 발생하는 이중 해제(Double Free) 취약점입니다. MSI 할당 실패 시 할당된 메시지 배열을 초기화하지 않아 메모리 손상이나 시스템 불안정을 초래할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품이 작동하기 위해 필요한 메모리를 빌렸다가, 문제가 생겨서 돌려주는 과정에서 실수로 두 번 돌려주려다 시스템이 고장 나는 문제입니다. 이로 인해 시스템이 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
PCI: endpoint: pci-ep-msi: Fix error unwind and prevent double alloc
pci_epf_alloc_doorbell() stores the allocated doorbell message array in
epf->db_msg/epf->num_db before requesting MSI vectors. If MSI allocation
fails, the array is freed but the EPF state may still point to freed
memory.
Clear epf->db_msg and epf->num_db on the MSI allocation failure path so
that later cleanup cannot double-free the array and callers can retry
allocation.
Also return -EBUSY when doorbells have already been allocated to prevent
leaking or overwriting an existing allocation.
📍 영향받는 시스템
Linux kernel (PCI endpoint MSI 관련 모듈 사용 시스템)
⚔️ 공격 벡터
특수하게 조작된 PCI 엔드포인트 장치를 통해 MSI 할당 실패를 유도하여 메모리 오류 발생
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인