🇰🇷 한글 설명
Linux 커널의 btrfs 파일 시스템에서 특정 데이터 프로필을 거부할 때 메모리 누수가 발생하는 취약점이 해결되었습니다. 기존에는 오류 발생 시 함수를 즉시 종료하여 할당된 메모리를 해제하는 코드가 실행되지 않았으나, 이제는 오류 값을 설정한 후 정리 코드를 거치도록 수정되었습니다.
💡 쉬운 설명
컴퓨터가 작업을 하다가 오류가 나면 사용하던 메모리를 깨끗이 치워야 하는데, 이 과정이 생략되어 메모리가 계속 쌓이는 문제가 있었습니다. 이로 인해 시스템의 메모리가 점차 부족해질 수 있는 현상입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix memory leaks when rejecting a non SINGLE data profile without an RST
At the end of btrfs_load_block_group_zone_info() the first thing we do
is to ensure that if the mapping type is not a SINGLE one and there is
no RAID stripe tree, then we return early with an error.
Doing that, though, prevents the code from running the last calls from
this function which are about freeing memory allocated during its
run. Hence, in this case, instead of returning early, we set the ret
value and fall through the rest of the cleanup code.
📍 영향받는 시스템
Linux kernel (btrfs 파일 시스템을 사용하는 시스템)
⚔️ 공격 벡터
로컬 공격자가 특정 btrfs 설정 및 데이터 프로필을 조작하여 메모리 누수를 유도할 수 있음
🛡️ 대응 방법
최신 보안 패치가 적용된 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인