🇰🇷 한글 설명
Linux 커널의 btrfs 파일 시스템 내 btrfs_uring_read_extent() 함수에서 오류 발생 시 할당된 페이지 메모리가 해제되지 않는 취약점입니다. 특정 오류 상황에서 메모리 해제 로직이 누락되어 메모리 누수가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 파일을 읽는 과정에서 오류가 발생했을 때, 사용했던 메모리를 제대로 돌려주지 않고 계속 붙잡고 있는 문제입니다. 이 문제가 반복되면 컴퓨터의 메모리가 부족해져 시스템 성능이 떨어지거나 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
btrfs: free pages on error in btrfs_uring_read_extent()
In this function the 'pages' object is never freed in the hopes that it is
picked up by btrfs_uring_read_finished() whenever that executes in the
future. But that's just the happy path. Along the way previous
allocations might have gone wrong, or we might not get -EIOCBQUEUED from
btrfs_encoded_read_regular_fill_pages(). In all these cases, we go to a
cleanup section that frees all memory allocated by this function without
assuming any deferred execution, and this also needs to happen for the
'pages' allocation.
📍 영향받는 시스템
Linux kernel (btrfs 파일 시스템을 사용하는 버전)
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 I/O 요청을 통해 메모리 누수를 유발할 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.