🇰🇷 한글 설명
Linux 커널의 BPF 링크 정보를 읽는 과정에서 Use-After-Free(UAF) 취약점이 발견되었습니다. bpf_link_show_fdinfo 및 bpf_link_get_info_by_fd 함수가 잠금 없이 link->prog에 접근하여, 동시에 bpf_link_update가 실행될 경우 기존 프로그램이 해제되어 메모리 오류가 발생할 수 있습니다. 이를 해결하기 위해 RCU 보호 하에 포인터를 가져오도록 수정되었습니다.
💡 쉬운 설명
컴퓨터의 핵심 운영체제인 리눅스에서 특정 정보를 읽는 도중, 데이터가 갑자기 삭제되어 시스템이 오작동하거나 해킹될 수 있는 결함이 발견되었습니다. 데이터가 읽히는 동안에는 삭제되지 않도록 안전장치를 추가하여 문제를 해결했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix potential UAF when reading bpf link info
In bpf_link_show_fdinfo and bpf_link_get_info_by_fd, link->prog is
accessed without holding any locks. If the prog is concurrently replaced
via bpf_link_update, the old prog can be freed, leading to a potential
UAF issue.
Fix this by accessing link->prog under RCU protection to safely fetch
the pointer and guarantee its lifetime while reading its fields.
📍 영향받는 시스템
Linux Kernel (BPF 관련 기능이 활성화된 모든 버전)
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 BPF 링크 업데이트와 정보 조회를 동시에 수행하여 메모리 오류 유도
🛡️ 대응 방법
RCU 보호가 적용된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인