🔍 CVE-2026-98219

0.0
CVSS Score
UNKNOWN
2026-10-06
2026-10-19 10:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 sched_ext 구성 요소에서 스케줄러 활성화와 비활성화 과정 중 상태 전환 타이밍 문제로 인해 발생하는 취약점입니다. 특정 오류 상황에서 스케줄러가 비활성화되지 않은 상태로 남게 되며, 이후 메모리 해제 시 Use-After-Free(UAF) 오류를 유발할 수 있습니다.

💡 쉬운 설명

컴퓨터의 작업 순서를 정하는 프로그램이 켜지고 꺼지는 과정에서 순서가 꼬여 발생하는 문제입니다. 이로 인해 프로그램이 꺼지지 않은 상태에서 메모리가 삭제되어 시스템 오류나 보안 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: sched_ext: Close the pre-enable ops error claim window scx_alloc_and_add_sched() publishes ops->priv before scx_root_enable_workfn() switches the state to SCX_ENABLING. An error claimed via scx_bpf_error_bstr() from an associated BPF program in that window is consumed by scx_disable_workfn(), which takes the pre-enable shortcut in scx_root_disable(). The shortcut returns without any teardown and restores SCX_DISABLED with an unconditional scx_set_enable_state() xchg racing the enable workfn's own transition. The enable then completes with the claim consumed: the scheduler stays up but can never be disabled again, and bpf_scx_unreg() frees it while still in use, resulting in a use-after-free. Both WARN_ON_ONCE()s fire back to back: WARNING: kernel/sched/ext/ext.c:7522 at scx_root_enable_workfn+0xeec/0x1be0, CPU#3: scx_enable_help/276 WARNING: kernel/sched/ext/ext.c:6398 at scx_root_disable+0xb50/0xdb8, CPU#0: sched_ext_helpe/664 scx_root_enable_workfn() switches to SCX_ENABLING before the scheduler allocation, so ops->priv is never visible while SCX_DISABLED. The allocation failure path restores SCX_DISABLED.

📍 영향받는 시스템

Linux kernel with sched_ext enabled

⚔️ 공격 벡터

BPF 프로그램을 통해 스케줄러 활성화 과정 중 의도적인 오류를 발생시켜 상태 전환 레이스 컨디션 유도

🛡️ 대응 방법

sched_ext의 상태 전환 로직이 수정된 최신 Linux 커널 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전이 sched_ext 취약점이 패치된 최신 릴리스인지 확인

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel