🇰🇷 한글 설명
Linux 커널의 sched_ext 구성 요소 내 scx_root_enable_workfn() 함수에서 초기화 실패 시 Use-After-Free(UAF) 취약점이 발생합니다. 오류 처리 과정에서 작업 구조체가 먼저 해제된 후 해당 구조체의 멤버에 접근함으로써 메모리 손상이 발생할 수 있습니다.
💡 쉬운 설명
프로그램이 작업을 시작하다가 오류가 났을 때, 이미 삭제된 메모리 정보를 다시 읽으려고 시도하여 발생하는 문제입니다. 이로 인해 시스템이 멈추거나 해커가 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
sched_ext: Avoid UAF in scx_root_enable_workfn() init failure path
In scx_root_enable_workfn(), put_task_struct(p) is called before scx_error()
dereferences p->comm and p->pid. If the iterator's reference is the last
drop, the task is freed synchronously and the deref becomes a UAF.
Move put_task_struct() past scx_error().
📍 영향받는 시스템
sched_ext 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
커널 초기화 실패 경로를 유도하여 메모리 참조 오류를 일으키는 로컬 공격
🛡️ 대응 방법
scx_error() 호출 이후로 put_task_struct() 호출 위치를 변경한 최신 커널 패치 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 최신 패치 버전인지 확인합니다.