🇰🇷 한글 설명
Linux 커널의 IIO(Industrial I/O) 드라이버에서 iio_dma_fence가 iio_dmabuf_priv보다 더 오래 생존할 수 있어 Use-After-Free 취약점이 발생합니다. 이를 해결하기 위해 펜스의 수명과 락(lock)의 수명을 동일한 구조체에 포함시켜 일치시키도록 수정되었습니다.
💡 쉬운 설명
데이터를 처리하는 도구가 실제 데이터 저장 공간보다 더 오래 작동하면서, 이미 사라진 메모리 공간에 접근하려고 시도하는 오류입니다. 이로 인해 시스템이 충돌하거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iio: buffer: Tie IIO dma fence lock lifetime to the fence
The `iio_dma_fence` implementation currently uses a lock embedded in the
`iio_dmabuf_priv`. But the `iio_dma_fence` can outlive the
`iio_dmabuf_priv`, which can cause a use-after-free.
Tie the lifetime of the lock to the lifetime of the fence by embedding them
in the same struct.
We can't just hold a reference to the `iio_dmabuf_priv` from the
`iio_dma_fence` since `iio_buffer_dmabuf_release()` might sleep and the
fence release callback is not allowed to sleep.
Note that the `dma_fence` framework now has an internal lock that gets used
when the passing `NULL` for `lock` in `dma_fence_init()`, but in order to
allow this patch to be backportable use an external lock.
📍 영향받는 시스템
Linux Kernel (IIO subsystem 관련 버전)
⚔️ 공격 벡터
특정 하드웨어 드라이버를 사용하는 환경에서 DMA 펜스 수명 주기 조작을 통한 메모리 오염
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.