🇰🇷 한글 설명
Linux 커널의 DAMON LRU_SORT 기능에서 damon_ctx 객체 할당 실패 시 이를 적절히 처리하지 못하는 취약점이 발견되었습니다. 할당 실패 시 NULL 포인터를 참조하게 되어 시스템이 충돌할 수 있으며, 이를 방지하기 위해 할당 실패 시 -ENOMEM을 반환하도록 수정되었습니다.
💡 쉬운 설명
컴퓨터의 메모리를 관리하는 과정에서 필요한 공간을 빌려오지 못했을 때, 프로그램이 이를 확인하지 않고 바로 사용하려다 오류가 발생하는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 재시작될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mm/damon/lru_sort: handle ctx allocation failure
DAMON_LRU_SORT allocates the damon_ctx object for its kdamond in its init
function. damon_lru_sort_enabled_store() wrongly assumes the allocation
will always succeed once tried. If the damon_ctx allocation was failed,
therefore, code execution reaches to damon_commit_ctx() while 'ctx' is
NULL. As a result, it dereferences the NULL 'ctx' pointer. Avoid the
NULL dereference by returning -ENOMEM if 'ctx' is NULL.
📍 영향받는 시스템
Linux Kernel (DAMON LRU_SORT 기능이 활성화된 버전)
⚔️ 공격 벡터
메모리 할당 실패를 유도하여 시스템을 중단시키는 서비스 거부(DoS) 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인하십시오.