🇰🇷 한글 설명
Linux 커널의 pnfs/flexfiles 구성 요소에서 nfs4_ff_alloc_deviceid_node() 함수 호출 시 메모리 누수가 발생하는 취약점이 발견되었습니다. ds_versions 할당 실패 시 이미 할당된 dsaddrs 리스트를 해제하지 않고 종료되어 메모리가 낭비되는 문제입니다.
💡 쉬운 설명
컴퓨터가 작업을 수행하다가 메모리를 빌려온 뒤, 오류가 났을 때 빌린 메모리를 제대로 돌려주지 않고 그냥 종료되는 문제입니다. 이 현상이 반복되면 시스템의 메모리가 점점 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node()
In nfs4_ff_alloc_deviceid_node(), if the allocation for ds_versions fails,
the function jumps to the out_scratch label without freeing the already
allocated dsaddrs list, leading to a memory leak.
Fix this by jumping to the out_err_drain_dsaddrs label, which properly
frees the dsaddrs list before cleaning up other resources.
📍 영향받는 시스템
Linux kernel (pnfs/flexfiles 모듈 사용 환경)
⚔️ 공격 벡터
직접적인 공격보다는 특정 조건(메모리 할당 실패 상황)에서 시스템 자원을 점진적으로 고갈시키는 방식
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 버전인지 확인