🇰🇷 한글 설명
Linux 커널의 drm/panthor 드라이버에서 GROUP_CREATE ioctl 함수 호출 시 발생할 수 있는 Use-After-Free(UAF) 취약점이 발견되었습니다. 공격자가 멀티스레딩을 이용해 그룹 생성과 삭제를 동시에 시도함으로써 메모리 관리 오류를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터가 새로운 작업 그룹을 만드는 도중에, 공격자가 아주 빠르게 그 그룹을 삭제하려고 시도하여 시스템 오류를 일으키는 문제입니다. 이로 인해 시스템이 멈추거나 해커가 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: Prevent potential UAF in group creation
This commit prevents the possibility of a use after free issue in the
GROUP_CREATE ioctl function, which arose as pointer to the group is
accessed in that ioctl function after storing it in the Xarray.
A malicious userspace can second guess the handle of a group and try
to call GROUP_DESTROY ioctl from another thread around the same time
as GROUP_CREATE ioctl.
To prevent the use after free exploit, this commit uses a mark on an
entry of group pool Xarray which is added just before returning from
the GROUP_CREATE ioctl function. The mark is checked for all ioctls
that specify the group handle and so userspace won't be abe to delete
a group that isn't marked yet.
v2: Add R-bs and fixes tags
📍 영향받는 시스템
Linux kernel (drm/panthor driver 포함 버전)
⚔️ 공격 벡터
악의적인 사용자 공간 프로세스가 멀티스레딩을 통해 GROUP_CREATE와 GROUP_DESTROY ioctl을 동시에 호출하여 메모리 해제 후 접근 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 수정된 최신 패치 버전인지 확인하십시오.