🇰🇷 한글 설명
Linux 커널의 posix-cpu-timers 구성 요소에서 do_cpu_nanosleep() 함수 실행 중 오류가 발생할 경우 PID 참조 횟수가 해제되지 않는 메모리 누수 취약점이 발견되었습니다. posix_cpu_timer_set() 호출 실패 시 posix_cpu_timer_del()이 호출되지 않아 시스템 자원이 지속적으로 소모되는 문제입니다.
💡 쉬운 설명
컴퓨터가 특정 작업을 하다가 오류가 났을 때, 사용했던 메모리 자원을 제대로 돌려주지 않고 계속 붙잡고 있는 버그입니다. 이 문제가 반복되면 시스템의 메모리가 조금씩 줄어들어 결국 컴퓨터가 느려지거나 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() error path
In do_cpu_nanosleep(), posix_cpu_timer_create() takes a pid reference
via get_pid() and stores it in timer.it.cpu.pid. If the subsequent
posix_cpu_timer_set() call fails, the function returns immediately
without calling posix_cpu_timer_del() to release the pid reference,
causing a leak.
Fix it by calling posix_cpu_timer_del() before the unlock-and-return
on the error path, consistent with the other exit paths in the same
function.
📍 영향받는 시스템
Linux kernel (posix-cpu-timers 모듈을 사용하는 시스템)
⚔️ 공격 벡터
로컬 사용자가 특정 시스템 호출을 반복하여 의도적으로 오류 경로를 유도함으로써 메모리 누수 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인