🇰🇷 한글 설명
Linux 커널의 host1x GPU 드라이버에서 syncpt 할당 및 해제 과정 중 레이스 컨디션(경쟁 상태) 취약점이 발견되었습니다. kref_put() 대신 kref_put_mutex()를 사용하여 참조 카운트가 0이 된 후 뮤텍스를 획득하기 전까지 발생할 수 있는 동기화 문제를 해결했습니다.
💡 쉬운 설명
컴퓨터의 그래픽 처리 장치(GPU)를 관리하는 프로그램에서 두 가지 작업이 동시에 일어나 충돌이 발생하는 문제가 있었습니다. 이로 인해 메모리 관리 오류가 생길 수 있었으나, 작업 순서를 안전하게 맞추는 방식으로 수정되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
gpu: host1x: Fix race in syncpt alloc/free
Fix race condition between host1x_syncpt_alloc()
and host1x_syncpt_put() by using kref_put_mutex()
instead of kref_put() + manual mutex locking.
This ensures no thread can acquire the
syncpt_mutex after the refcount drops to zero
but before syncpt_release acquires it.
This prevents races where syncpoints could
be allocated while still being cleaned up
from a previous release.
Remove explicit mutex locking in syncpt_release
as kref_put_mutex() handles this atomically.
📍 영향받는 시스템
Linux kernel (host1x GPU driver 포함 버전)
⚔️ 공격 벡터
로컬 시스템에서 GPU 드라이버의 동기화 메커니즘을 악용하여 메모리 오류 또는 권한 상승 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인