🇰🇷 한글 설명
Linux 커널의 iommufd 구성 요소에서 dma_buf_unpin() 호출 시 필요한 dma_resv 잠금(lock)을 획득하지 않는 취약점이 발견되었습니다. 이로 인해 iommufd_ioas_destroy() 또는 iommufd_ioas_unmap() 실행 시 커널 경고(WARN)가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 메모리를 관리하는 과정에서 중요한 '잠금 장치'를 제대로 걸지 않아 시스템이 오류를 일으킬 수 있는 문제입니다. 이로 인해 시스템 안정성에 문제가 생기거나 예기치 않은 동작이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iommufd: Take dma_resv lock before dma_buf_unpin() in release path
dma_buf_unpin() requires the caller to hold the exporter's dma_resv
lock:
void dma_buf_unpin(struct dma_buf_attachment *attach)
{
...
dma_resv_assert_held(dmabuf->resv);
...
}
iopt_release_pages() calls dma_buf_unpin() without taking that lock,
so every iommufd_ioas_destroy()/iommufd_ioas_unmap() that releases
the last reference on a DMABUF-backed iopt_pages triggers a WARN.
This was hit while running tools/testing/selftests/iommu/iommufd:
WARNING: drivers/dma-buf/dma-buf.c:1137 at dma_buf_unpin+0x62/0x70
RIP: 0010:dma_buf_unpin+0x62/0x70
Call Trace:
<TASK>
dma_buf_unpin+0x62/0x70
iopt_release_pages+0xe4/0x190
iopt_unmap_iova_range+0x1c7/0x290
iopt_unmap_all+0x1a/0x30
iommufd_ioas_destroy+0x1d/0x50
iommufd_fops_release+0x93/0x150
__fput+0xfc/0x2c0
__x64_sys_close+0x3d/0x80
do_syscall_64+0x65/0x180
</TASK>
Take the dma_resv lock around dma_buf_unpin() in iopt_release_pages(),
matching the iopt_map_dmabuf() convention. dma_buf_detach() acquires the
reservation lock internally, so it must remain outside the locked region.
📍 영향받는 시스템
Linux kernel (iommufd 관련 모듈 사용 시스템)
⚔️ 공격 벡터
로컬 권한을 가진 사용자가 iommufd 관련 시스템 호출을 통해 커널 경고를 유발하거나 시스템 불안정성을 초래할 수 있음
🛡️ 대응 방법
iopt_release_pages() 함수 내에서 dma_buf_unpin() 호출 전 dma_resv 잠금을 획득하도록 커널을 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 패치된 최신 버전인지 보안 공지(CVE-2026-80633)와 대조하십시오.