🇰🇷 한글 설명
리눅스 커널의 dmaengine 구성 요소에서 Use-After-Free 취약점이 발견되었습니다. dma_release_channel 함수 내에서 dma_chan_put() 호출 이후에 장치 참조 횟수를 확인하여, 이미 해제된 메모리에 접근할 수 있는 문제가 있었습니다.
💡 쉬운 설명
컴퓨터 부품 간의 데이터 전송을 관리하는 과정에서, 이미 사용이 끝나 사라진 메모리 공간을 다시 사용하려고 시도하는 오류가 있습니다. 이로 인해 시스템이 갑자기 멈추거나 보안 공격에 이용될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: Fix possible use after free
In dma_release_channel(), check chan->device->privatecnt after call
dma_chan_put(). However, dma_chan_put() call dma_device_put() which could
release the last reference of the device if the DMA provider is already
gone and hence free it.
Fixes it by moving dma_chan_put() after the check.
📍 영향받는 시스템
Linux Kernel (dmaengine 서브시스템을 사용하는 모든 버전)
⚔️ 공격 벡터
DMA 장치 드라이버의 채널 해제 과정을 조작하여 메모리 오류를 유도하는 로컬 공격
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.