🇰🇷 한글 설명
리눅스 커널의 AppArmor 모듈 내 aa_get_buffer 함수에서 per-cpu hold 값이 언더플로우되는 취약점이 발견되었습니다. 이로 인해 hold 값이 UINT_MAX로 급증하여 버퍼가 전역 리스트로 반환되지 못하고, 결과적으로 메모리 고갈 및 시스템 성능 저하를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 메모리를 관리하는 과정에서 숫자가 잘못 계산되어 메모리가 계속 쌓이기만 하고 비워지지 않는 문제입니다. 이로 인해 시스템이 느려지거나 메모리가 부족해지는 현상이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
apparmor: avoid per-cpu hold underflow in aa_get_buffer
When aa_get_buffer() pulls from the per-cpu list it unconditionally
decrements cache->hold. If hold reaches 0 while count is still non-zero,
the unsigned decrement wraps to UINT_MAX. This keeps hold non-zero for a
very long time, so aa_put_buffer() never returns buffers to the global
list, which can starve other CPUs and force repeated kmalloc(aa_g_path_max)
allocations.
Guard the decrement so hold never underflows.
📍 영향받는 시스템
AppArmor를 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특정 시스템 호출을 반복하여 메모리 할당을 유도함으로써 자원 고갈(DoS) 유발
🛡️ 대응 방법
AppArmor의 aa_get_buffer 함수 내 hold 값 감소 로직에 가드(Guard)가 포함된 최신 리눅스 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인합니다.