🇰🇷 한글 설명
Linux 커널의 of/overlay 구성 요소에서 changeset 초기화 실패 시 파편(fragment) 참조가 해제되지 않는 취약점이 발견되었습니다. 초기화 과정 중 오류가 발생하면 이미 할당된 참조 카운트가 업데이트되지 않아 메모리 누수가 발생할 수 있습니다.
💡 쉬운 설명
시스템 설정 중에 오류가 발생하면 사용했던 메모리 자원을 제대로 돌려주지 않고 계속 붙잡고 있는 문제입니다. 이로 인해 시스템의 메모리가 조금씩 낭비되는 현상이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
of/overlay: don't leak fragment references when changeset init fails
init_overlay_changeset() stores the number of initialized fragments
in ovcs->count only on full success. When find_target() or the
__symbols__ lookup fails partway through, the target and overlay
references taken for the fragments initialized so far are never
dropped: free_overlay_changeset() bounds its cleanup loop by
ovcs->count, which is still 0.
Store the running count on the error path so free_overlay_changeset()
puts whatever was set up. The store is guarded by ovcs->fragments
because on the allocation-failure path cnt still holds the counting
pass total while there is no fragments array; everywhere else cnt
only counts fully-initialized fragments.
📍 영향받는 시스템
Linux Kernel (of/overlay 구성 요소 사용 시)
⚔️ 공격 벡터
로컬 공격자가 특정 조건에서 overlay 초기화 실패를 유도하여 메모리 누수 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인