🇰🇷 한글 설명
Linux 커널의 ENA 드라이버에서 get_timestamp 함수 호출 시 발생할 수 있는 Use-After-Free 취약점이 해결되었습니다. 기존에는 스핀락을 획득하기 전에 PHC 활성화 상태를 확인하고 포인터를 캐싱하여, 메모리가 해제된 후에도 해당 주소에 접근할 수 있는 문제가 있었습니다.
💡 쉬운 설명
컴퓨터가 사용 중인 메모리 주소를 확인하는 과정에서, 다른 작업이 해당 메모리를 먼저 지워버려 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 예상치 못한 동작을 할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: ena: PHC: Fix potential use-after-free in get_timestamp
Move the phc->active check and resp pointer assignment to after
acquiring the spinlock. Previously, phc->active was checked without
holding the lock, and resp was cached from ena_dev->phc.virt_addr
before the lock was acquired.
If ena_com_phc_destroy() runs between the lockless active check and
the lock acquisition, it sets active=false, releases the lock, frees
the DMA memory, and sets virt_addr=NULL. The get_timestamp path would
then read a NULL virt_addr and dereference it.
With both the active check and the pointer read under the lock,
destroy cannot free the memory while get_timestamp is using it.
📍 영향받는 시스템
Linux kernel (ENA driver 사용 환경)
⚔️ 공격 벡터
특정 네트워크 드라이버의 타이머 요청과 메모리 해제 작업 간의 타이밍 차이를 이용한 로컬 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.