🇰🇷 한글 설명
Linux 커널의 drm/panthor 드라이버에서 그룹 핸들을 그룹 객체로 변환할 때 레이스 컨디션(경쟁 상태)이 발생할 수 있는 취약점입니다. XArray에서 포인터를 가져온 후 참조 횟수를 증가시키는 과정 사이에 데이터가 삭제될 수 있는 문제가 있었으며, 이를 해결하기 위해 내부 잠금 메커니즘을 강화했습니다.
💡 쉬운 설명
컴퓨터가 데이터를 처리하는 과정에서 두 가지 작업이 동시에 일어나 데이터가 엉키는 문제가 있었습니다. 이로 인해 시스템이 불안정해지거나 예상치 못한 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: Fix race when converting group handle to group object
XArray provides it's own internal lock which protects the internal array
when entries are being simultaneously added and removed. However there
is still a race between retrieving the pointer from the XArray and
incrementing the reference count.
To avoid this race simply hold the internal XArray lock when
incrementing the reference count, this ensures there cannot be a racing
call to xa_erase().
📍 영향받는 시스템
Linux kernel (drm/panthor 드라이버를 사용하는 시스템)
⚔️ 공격 벡터
로컬 시스템에서 특정 드라이버 호출을 통한 레이스 컨디션 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인