🇰🇷 한글 설명
Linux 커널의 netfilter 구성 요소에서 ebt_redirect_tg() 함수가 br_port_get_rcu()의 반환값에 대해 NULL 체크를 수행하지 않아 발생하는 취약점입니다. 브리지 포트가 제거되거나 macvlan과 같은 다른 가상 장치로 이동할 경우 커널 패닉(Kernel Panic)이 발생할 수 있습니다.
💡 쉬운 설명
네트워크 연결 설정이 갑자기 바뀌는 상황에서 컴퓨터의 핵심 시스템인 커널이 이를 제대로 처리하지 못해 시스템이 멈춰버리는 문제입니다. 공격자가 네트워크 설정을 조작하여 시스템을 강제로 재부팅시키거나 중단시킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: revalidate bridge ports
ebt_redirect_tg() dereferences br_port_get_rcu() return without a
NULL check, causing a kernel panic when the bridge port has been
removed between the original hook invocation and an NFQUEUE
reinject.
A mere NULL check isn't sufficient, however. As sashiko review
points out userspace can not only remove the port from the bridge,
it could also place the device in a different virtual device, e.g.
macvlan.
If this happens, we must drop the packet, there is no way for us to
reinject it into the bridge path.
Switch to _upper API, we don't need the bridge port structure.
Also, this fix keeps another bug intact:
Both nfnetlink_log and nfnetlink_queue use CONFIG_BRIDGE_NETFILTER
too aggressive, which prevents certain logging features when queueing
in bridge family: NETFILTER_FAMILY_BRIDGE can be enabled while the old
CONFIG_BRIDGE_NETFILTER cruft is off.
Fixes tag is a common ancestor, this was always broken.
📍 영향받는 시스템
Linux Kernel (netfilter/ebt_redirect_tg 관련 모듈 사용 시스템)
⚔️ 공격 벡터
사용자 공간(Userspace)에서 브리지 포트를 제거하거나 장치를 다른 가상 장치로 이동시켜 레이스 컨디션 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인