🇰🇷 한글 설명
Linux 커널 netfilter 플로우테이블의 nf_flow_pppoe_proto() 함수에서 이더넷 헤더를 고려하지 않아 초기화되지 않은 메모리 값을 읽는 문제가 발견되었습니다. 이로 인해 커널 메모리 정보가 노출되거나 예기치 않은 동작이 발생할 수 있습니다. 해당 커밋이 이더넷 헤더를 누락한 것이 원인입니다.
💡 쉬운 설명
리눅스 시스템의 네트워크 패킷 처리 기능에서 잘못된 메모리 값을 읽는 버그가 발견되었습니다. 공격자가 이를 이용해 시스템을 불안정하게 만들거나 제한된 정보를 엿볼 가능성이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: flowtable: account for Ethernet header in nf_flow_pppoe_proto()
syzbot found a potential access to uninit-value in nf_flow_pppoe_proto()
Blamed commit forgot the Ethernet header.
BUG: KMSAN: uninit-value in nf_flow_offload_inet_hook+0x7e4/0x940 net/netfilter/nf_flow_table_inet.c:27
nf_flow_offload_inet_hook+0x7e4/0x940 net/netfilter/nf_flow_table_inet.c:27
nf_hook_entry_hookfn include/linux/netfilter.h:157 [inline]
nf_hook_slow+0xe1/0x3d0 net/netfilter/core.c:623
nf_hook_ingress include/linux/netfilter_netdev.h:34 [inline]
nf_ingress net/core/dev.c:5742 [inline]
__netif_receive_skb_core+0x4aff/0x70c0 net/core/dev.c:5837
__netif_receive_skb_one_core net/core/dev.c:5975 [inline]
__netif_receive_skb+0xcc/0xac0 net/core/dev.c:6090
netif_receive_skb_internal net/core/dev.c:6176 [inline]
netif_receive_skb+0x57/0x630 net/core/dev.c:6235
tun_rx_batched+0x1df/0x980 drivers/net/tun.c:1485
tun_get_user+0x4ee0/0x6b40 drivers/net/tun.c:1938
tun_chr_write_iter+0x3e9/0x5c0 drivers/net/tun.c:1984
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0xb4b/0x1580 fs/read_write.c:686
ksys_write fs/read_write.c:738 [inline]
__do_sys_write fs/read_write.c:749 [inline]
📍 영향받는 시스템
패치가 적용되지 않은 netfilter flowtable 기능을 사용하는 Linux 커널 버전 (PPPoE 플로우 오프로드 사용 환경)
⚔️ 공격 벡터
로컬 네트워크에서 조작된 PPPoE 패킷을 전송하여 커널이 초기화되지 않은 값을 읽도록 유도
🛡️ 대응 방법
배포판 제공 최신 커널 업데이트를 적용하고 재부팅
🔧 검증 코드
커널 버전이 패치된 최신 버전인지 배포판 보안 공지와 대조하고, flow offload 모듈이 로드되지 않았다면 해당 기능이 비활성 상태이므로 영향이 제한적입니다.
uname -r && (lsmod | grep -E 'nf_flow_table|nft_flow_offload' || echo 'flow offload module not loaded')