🇰🇷 한글 설명
Linux 커널의 iommu/dma-iommu 구성 요소에서 P2PDMA 경로 처리 중 scatterlist 길이를 잘못 할당하는 취약점이 발견되었습니다. iommu_dma_map_sg() 함수가 현재 세그먼트의 길이가 아닌 첫 번째 세그먼트의 길이를 참조함으로써, 다중 세그먼트 사용 시 DMA 길이가 손상될 수 있습니다.
💡 쉬운 설명
데이터를 여러 조각으로 나누어 전송할 때, 모든 조각의 크기를 첫 번째 조각의 크기로 잘못 인식하는 오류가 있습니다. 이로 인해 데이터가 엉뚱한 곳에 써지거나 시스템 메모리가 오염될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iommu/dma-iommu: Fix wrong scatterlist length assignment in P2PDMA path
In iommu_dma_map_sg(), when handling PCI P2PDMA cases, the DMA length
of the current scatterlist segment `s` is incorrectly assigned from the
head entry `sg->length` instead of the current entry `s->length`.
This typo causes all P2PDMA segments in the scatterlist to inherit the
length of the first segment, leading to corrupted DMA lengths for multi-
segment scatterlists.
Fix this by using `s->length` instead of `sg->length`.
📍 영향받는 시스템
P2PDMA 기능을 사용하는 Linux 커널 기반 시스템
⚔️ 공격 벡터
악의적으로 조작된 DMA 요청을 통해 메모리 손상 및 권한 상승 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 수정된 패치가 적용된 버전인지 확인합니다.