🇰🇷 한글 설명
Linux 커널의 vhost_vdpa 구성 요소에서 IRQ 우회 프로듀서 토큰을 잘못 관리하여 발생하는 취약점입니다. 토큰의 생명 주기가 적절히 제어되지 않아 발생할 수 있는 Use-After-Free(UAF) 문제를 해결하기 위해 토큰 등록 및 해제 로직이 수정되었습니다.
💡 쉬운 설명
컴퓨터의 핵심 운영체제인 리눅스에서 특정 장치를 관리하는 과정 중 메모리를 잘못 사용하는 오류가 발견되었습니다. 이 오류를 이용하면 공격자가 시스템을 불안정하게 만들거나 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
vhost_vdpa: assign irq bypass producer token correctly
We used to call irq_bypass_unregister_producer() in
vhost_vdpa_setup_vq_irq() which is problematic as we don't know if the
token pointer is still valid or not.
Actually, we use the eventfd_ctx as the token so the life cycle of the
token should be bound to the VHOST_SET_VRING_CALL instead of
vhost_vdpa_setup_vq_irq() which could be called by set_status().
Fixing this by setting up irq bypass producer's token when handling
VHOST_SET_VRING_CALL and un-registering the producer before calling
vhost_vring_ioctl() to prevent a possible use after free as eventfd
could have been released in vhost_vring_ioctl(). And such registering
and unregistering will only be done if DRIVER_OK is set.
📍 영향받는 시스템
vhost_vdpa 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특수하게 조작된 vhost_vdpa 관련 IOCTL 호출을 통한 메모리 오용 유도
🛡️ 대응 방법
vhost_vdpa의 IRQ 우회 토큰 관리 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인합니다.