🇰🇷 한글 설명
Linux 커널의 vhost 구성 요소에서 vring 재설정 시 메타데이터 캐시가 적절히 초기화되지 않는 취약점입니다. 이로 인해 잘못된 주소 매핑이 캐시에 남아 있어, 공격자가 허용되지 않은 메모리 영역에 접근하거나 데이터를 읽고 쓸 수 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 주고받는 통로의 주소록이 업데이트되었음에도 옛날 주소를 계속 사용하는 오류입니다. 이 오류를 이용하면 허가되지 않은 메모리 영역을 몰래 들여다보거나 조작할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
vhost: reset the vring metadata cache on vring reconfiguration
vq->meta_iotlb[] caches the vhost_iotlb_map that backs each vring
metadata region, and iotlb_access_ok() returns early on a cache hit,
taking the hit as proof that the region has already been validated:
if (vhost_vq_meta_fetch(vq, addr, len, type))
return true;
The cache is reset on VHOST_IOTLB_UPDATE and VHOST_IOTLB_INVALIDATE, on
device IOTLB (re)initialisation and on vq reset, but not when
VHOST_SET_VRING_ADDR replaces vq->desc, vq->avail and vq->used, nor when
VHOST_SET_VRING_NUM changes the region sizes.
With a device IOTLB attached both ioctls are accepted while the vq is
live, and neither validates the addresses at ioctl time: vq_access_ok()
and vq_log_used_access_ok() return true early because the addresses are
GIOVAs, deferring validation to prefetch time. Once the cache has been
populated that deferred validation no longer runs -- vq_meta_prefetch()
hits the stale entry and returns true -- and vhost_vq_meta_fetch() keeps
translating through the old mapping as
map->addr + addr - map->start
for an address the mapping no longer covers. vhost_copy_to_user() and
vhost_copy_from_user() consume the result with __copy_to_user() and
__copy_from_user(), which do not check it either, so a subsequent used
ring update or descriptor fetch accesses memory outside the region the
IOTLB actually maps.
Reset the metadata cache whenever the vring is reconfigured, so the new
addresses are pushed back through iotlb_access_ok()'s slow path.
📍 영향받는 시스템
Linux kernel (vhost 구성 요소가 포함된 버전)
⚔️ 공격 벡터
VHOST_SET_VRING_ADDR 또는 VHOST_SET_VRING_NUM ioctl을 이용한 vring 재설정 및 캐시 오염
🛡️ 대응 방법
vring 재설정 시 메타데이터 캐시를 초기화하도록 커널 패치를 적용하거나 최신 안정 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 보안 패치 버전인지 확인하십시오.
📊 CVSS Vector String
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux