🇰🇷 한글 설명
Linux 커널의 dmaengine 구성 요소에서 dma_chan_put() 및 dma_release_channel() 함수 호출 시 Use-After-Free 취약점이 발견되었습니다. dma_device_put()이 참조 카운트를 감소시켜 장치를 해제한 후에도 dma_chan_put()이 해제된 메모리에 접근하여 발생합니다.
💡 쉬운 설명
컴퓨터의 데이터 전송을 관리하는 부품이 이미 삭제된 정보를 다시 읽으려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: fix use-after-free in dma_chan_put() and dma_release_channel()
When dma_device_put() drops the last reference on chan->device->ref,
dma_device_release() runs and may free the dma_device along with its
channels.
dma_chan_put() then still reads chan->device->owner via
dma_chan_to_owner() for the trailing module_put(). KASAN catches it:
slab-use-after-free in dma_chan_put+0x3e6/0x4c0
Read of size 8 by task insmod/6319
Freed by task 6319:
kfree+0x225/0x470
dma_chan_put+0x395/0x4c0
dmaengine_put+0xf8/0x160
Cache the module owner in dma_chan_put() before the put so the trailing
module_put() does not need chan->device.
📍 영향받는 시스템
Linux Kernel (dmaengine 서브시스템을 사용하는 버전)
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 특정 DMA 채널 조작을 통해 메모리 오류를 유발할 수 있음
🛡️ 대응 방법
dma_chan_put() 함수 내에서 module_put() 호출 전 소유자 정보를 미리 캐싱하도록 커널 패치 적용
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 수정된 최신 패치 버전인지 확인하십시오.
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux