🇰🇷 한글 설명
Linux 커널의 drm/msm 드라이버에서 스케줄러 초기화가 완료되기 전에 실패할 경우, 불완전하게 초기화된 링 버퍼를 해제하려 시도하여 발생하는 취약점입니다. drm_sched_init()이 성공적으로 완료된 경우에만 종료 함수를 호출하도록 수정하여 메모리 오류를 방지합니다.
💡 쉬운 설명
컴퓨터 부품을 작동시키기 위한 준비 과정에서 오류가 났을 때, 준비가 덜 된 상태에서 억지로 정리 작업을 하려다 시스템이 꼬이는 문제입니다. 이 문제를 해결하면 준비 과정 중 오류가 발생해도 시스템이 안전하게 작동합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/msm: Only fini scheduler after successful init
msm_ringbuffer_new() destroys a partially initialized ring through
msm_ringbuffer_destroy() when an allocation or scheduler setup step
fails.
If drm_sched_init() fails before it finishes initializing the scheduler,
the failure path still calls drm_sched_fini(). That teardown path assumes
the scheduler work items, lists, and workqueue state were initialized.
Track successful scheduler initialization and call drm_sched_fini() only
after drm_sched_init() returned 0.
This issue was found by a static analysis checker and confirmed by
manual source review.
Patchwork: https://patchwork.freedesktop.org/patch/738905/
📍 영향받는 시스템
Linux kernel (drm/msm driver 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 특정 메모리 할당 실패를 유도하여 커널 패닉 또는 메모리 손상을 일으킬 수 있음
🛡️ 대응 방법
해당 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인