🇰🇷 한글 설명
Linux 커널의 drm/panthor 드라이버 내 panthor_gem_create_with_handle() 디버그fs 코드에서 Use-After-Free(UAF) 취약점이 발견되었습니다. 객체가 이미 해제된 후 참조될 수 있는 문제를 해결하기 위해, 객체가 완전히 생성된 후에만 debugfs에 추가되도록 로직을 수정하였습니다.
💡 쉬운 설명
컴퓨터 메모리에서 이미 삭제된 데이터를 다시 사용하려고 할 때 발생하는 오류입니다. 이 오류를 이용하면 시스템이 멈추거나 해커가 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code
The object is potentially already gone after the drm_gem_object_put().
In general the object should be fully constructed before calling
drm_gem_handle_create(), except the debugfs tracking uses a separate
lock and list and separate flag to denotate whether the object is
actually initialized.
Since I'm touching this all anyway simplify this by only adding the
object to the debugfs when it's ready for that, which allows us to
delete that separate flag. panthor_gem_debugfs_bo_rm() already checks
whether we've actually been added to the list or this is some error
path cleanup.
v2: Fix build issues for !CONFIG_DEBUGFS (Adrián)
v3: Add linebreak and remove outdated comment (Liviu)
📍 영향받는 시스템
Linux Kernel (panthor DRM driver 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 특정 메모리 관리 시나리오를 유도하여 Use-After-Free를 유발
🛡️ 대응 방법
panthor 드라이버의 UAF 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인