🇰🇷 한글 설명
Linux 커널의 Open vSwitch 모듈에서 Ethernet 헤더 길이를 제대로 검증하지 않아 발생하는 취약점입니다. ARPHRD_NONE 장치(예: TUN)를 통해 특정 프로토콜(ETH_P_TEB)을 가진 패킷이 들어올 경우, skb의 선형 데이터 크기가 부족하면 __skb_pull() 함수에서 커널 BUG가 발생하여 시스템이 중단될 수 있습니다.
💡 쉬운 설명
네트워크 패킷의 크기가 예상보다 작음에도 불구하고 시스템이 이를 확인하지 않고 데이터를 읽으려다 발생하는 오류입니다. 이로 인해 컴퓨터 시스템이 갑자기 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/openvswitch: check Ethernet header length in key_extract()
When a packet arrives on an ARPHRD_NONE device (e.g. TUN),
ovs_flow_key_extract() trusts the user-provided skb->protocol field: if
it is ETH_P_TEB, the packet is classified as MAC_PROTO_ETHERNET and
key_extract() is called without ensuring the skb has ETH_HLEN (14) bytes
of linear data. key_extract() unconditionally pulls 2 * ETH_ALEN bytes
for MAC addresses and parse_ethertype() pulls 2 more, either of which
triggers a kernel BUG in __skb_pull() when the linear area is too small.
kernel BUG at include/linux/skbuff.h:2848!
RIP: 0010:key_extract+0xa7e/0xd90 net/openvswitch/flow.c:933
ovs_flow_key_extract+0x419/0xa70
ovs_vport_receive+0x222/0x390
netdev_frame_hook+0x3e0/0x630
tun_get_user+0x2d0c/0x38e0
Fixed by calling check_header() in key_extract() before accessing the
Ethernet header.
📍 영향받는 시스템
Linux kernel (Open vSwitch 모듈을 사용하는 시스템)
⚔️ 공격 벡터
조작된 Ethernet 헤더 길이를 가진 패킷을 TUN 장치 등을 통해 전송
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 key_extract() 내 check_header() 검증 로직 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인