🇰🇷 한글 설명
Linux 커널의 WireGuard 구현에서 peer 객체가 아닌 ctx 객체를 통해 장치에 접근하도록 수정되었습니다. 기존 방식은 peer->device가 NULL인 경우 참조 오류를 발생시킬 수 있었으나, ctx->wg를 사용함으로써 성능을 개선하고 이미 해제된 peer에 대한 방어력을 높였습니다.
💡 쉬운 설명
네트워크 연결 기술인 WireGuard에서 데이터가 잘못된 곳을 참조하여 시스템이 멈추거나 오류가 발생할 수 있는 결함이 발견되었습니다. 이를 수정하여 시스템이 더 안전하고 빠르게 작동하도록 개선했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wireguard: netlink: access device through ctx instead of peer
The previous commit fixed a bug that led to a NULL peer->device being
dereferenced. It's actually easier and faster performance-wise to
instead get the device from ctx->wg. This semantically makes more sense
too, since ctx->wg->peer_allowedips.seq is compared with
ctx->allowedips_seq, basing them both in ctx. This also acts as a
defence in depth provision against freed peers.
📍 영향받는 시스템
WireGuard가 포함된 Linux 커널 버전
⚔️ 공격 벡터
조작된 Netlink 메시지를 통해 NULL 포인터 역참조를 유도하는 방식
🛡️ 대응 방법
WireGuard 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.