🇰🇷 한글 설명
Linux 커널의 GFS2 파일 시스템에서 gfs2_qd_dealloc 함수 호출 시 slab-use-after-free 취약점이 발견되었습니다. gfs2_put_super() 과정에서 할당된 쿼타 데이터가 완전히 정리되기 전에 구조체가 해제되어 메모리 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 사용하던 메모리 공간을 다 비우기도 전에 먼저 삭제해버려서 발생하는 오류입니다. 이로 인해 시스템이 불안정해지거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
gfs2: Fix slab-use-after-free in gfs2_qd_dealloc
In gfs2_put_super(), whether withdrawn or not, the quota should
be cleaned up by gfs2_quota_cleanup().
Otherwise, struct gfs2_sbd will be freed before gfs2_qd_dealloc (rcu
callback) has run for all gfs2_quota_data objects, resulting in
use-after-free.
Also, gfs2_destroy_threads() and gfs2_quota_cleanup() is already called
by gfs2_make_fs_ro(), so in gfs2_put_super(), after calling
gfs2_make_fs_ro(), there is no need to call them again.
📍 영향받는 시스템
GFS2 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특정 파일 시스템 조작을 통해 메모리 오류를 유도하여 권한 상승 시도
🛡️ 대응 방법
GFS2 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 보안 패치 버전인지 확인