🇰🇷 한글 설명
Linux 커널의 BPF 구현에서 mmap 작업 중 freeze_mutex를 과도하게 유지하여 발생할 수 있는 데드락 취약점이 해결되었습니다. 기존 방식은 메모리 매핑 과정 전체 동안 뮤텍스를 점유하여 시스템 정지 문제를 일으킬 수 있었으나, 이제는 쓰기 권한 확인 시에만 뮤텍스를 사용하도록 개선되었습니다.
💡 쉬운 설명
컴퓨터의 핵심 운영체제(Linux)에서 특정 작업을 할 때 자물쇠를 너무 오래 채워두어 시스템이 멈추는 현상이 발견되었습니다. 이 문제를 해결하여 시스템이 멈추지 않고 더 효율적으로 작동하게 만들었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bpf: avoid holding freeze_mutex during mmap operation
We use map->freeze_mutex to prevent races between map_freeze() and
memory mapping BPF map contents with writable permissions. The way we
naively do this means we'll hold freeze_mutex for entire duration of all
the mm and VMA manipulations, which is completely unnecessary. This can
potentially also lead to deadlocks, as reported by syzbot in [0].
So, instead, hold freeze_mutex only during writeability checks, bump
(proactively) "write active" count for the map, unlock the mutex and
proceed with mmap logic. And only if something went wrong during mmap
logic, then undo that "write active" counter increment.
[0] https://lore.kernel.org/bpf/
[email protected]/
📍 영향받는 시스템
Linux Kernel (BPF 기능이 활성화된 버전)
⚔️ 공격 벡터
특정 BPF 맵의 mmap 작업을 유도하여 시스템 데드락(Deadlock) 유발
🛡️ 대응 방법
최신 보안 패치가 적용된 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 최신 패치 버전인지 확인