🔍 CVE-2026-99033

0.0
CVSS Score
UNKNOWN
2026-10-23
2026-10-23 13:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 net/packet 모듈에서 packet_rcv_spkt() 함수가 링크 계층 헤더를 복원할 때, 장치에 가시적인 링크 계층 헤더가 없는 경우(예: CAN 장치)에도 검사 없이 skb_push()를 호출하여 mac_header 센티널 값(0xFFFF)으로 인해 음수 길이가 계산되고 skb_under_panic 및 커널 패닉이 발생할 수 있습니다. 해당 호출을 dev_has_header()로 보호하도록 수정되었습니다.

💡 쉬운 설명

특정 하드웨어 장치(예: CAN 버스 장치)로 패킷 소켓을 통해 데이터가 수신되면 리눅스 커널이 강제로 멈출 수 있는 문제입니다. 패치는 해당 경우를 안전하게 처리하도록 검사를 추가합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net/packet: guard the ll header push in packet_rcv_spkt() packet_rcv_spkt() restores the link layer header with skb_push(skb, skb->data - skb_mac_header(skb)); That subtraction is only meaningful when the device actually has a link layer header. packet_rcv() and tpacket_rcv() both wrap it in dev_has_header(), which is also the predicate the block comment at the top of the file states the restore in terms of; packet_rcv_spkt() does not. commit d549699048b4 ("net/packet: fix packet receive on L3 devices without visible hard header") introduced the helper and changed the two call sites, and this one stayed behind. A device without a visible ll header can leave skb->mac_header at the 0xFFFF sentinel that __alloc_skb() initialises it to. A CAN skb does: init_can_skb() sets pkt_type and ip_summed but does not reset the headers, and commit 9f10374bb024 ("can: remove private CAN skb headroom infrastructure") dropped the skb_reset_*_header() calls that used to be there. skb_mac_header() is then 0xFFFF, the length becomes a large negative number and skb_push() reports it through skb_under_panic() -- from softirq context, so it is a full system panic even with panic_on_oops=0: skbuff: skb_under_panic: text:ffffffff8bd21bc1 len:-65455 put:-65471 head:... data:... tail:0x50 end:0x180 dev:can0 kernel BUG at net/core/skbuff.c:214! RIP: 0010:skb_panic+0x50/0x60 Call Trace: <IRQ> skb_push+0x38/0x40 packet_rcv_spkt+0xe1/0x170 __netif_receive_skb_core.constprop.0+0x7e8/0xd30 ... Kernel panic - not syncing: Fatal exception in interrupt The socket type is reachable: packet_create() accepts SOCK_PACKET alongside SOCK_RAW and SOCK_DGRAM behind the same CAP_NET_RAW check, and neither the socket length nor a capability check keeps it away from a CAN interface. The missing skb_reset_*_header() calls in init_can_skb() are a regression in their own right and are being fixed separately, but a packet socket should not turn a link layer that did not initialise its mac header into a kernel panic. Guard the push the way the other two receive paths do. Tested on v7.3-rc5 under QEMU with a slcan device on a pty, which is the driver RX path: vcan does not reproduce it, because can_send() resets the headers on the way out. One SOCK_PACKET socket bound to can0 and one frame written into the line discipline panics an unpatched kernel with the trace above; the same image with this patch prints no panic and powers off normally. Both kernels are this tree, defconfig plus CONFIG_CAN_SLCAN=y, differing only in this hunk.

📍 영향받는 시스템

패치되지 않은 Linux 커널 (v7.3-rc5 기준 확인, CAN 장치 및 SOCK_PACKET 소켓 사용 환경)

⚔️ 공격 벡터

CAP_NET_RAW 권한을 가진 사용자가 CAN 인터페이스에 SOCK_PACKET 소켓을 바인딩한 상태에서 프레임이 수신되면 커널 패닉을 유발할 수 있음

🛡️ 대응 방법

커널을 해당 패치가 포함된 버전으로 업데이트하고, 배포판 보안 업데이트를 적용하며, 필요 시 CAN 장치 사용을 제한하거나 SOCK_PACKET 사용을 중단

🔧 검증 코드

출력된 커널 버전이 이 패치가 포함된 수정 버전 이상인지 배포판 보안 공지 또는 커널 changelog에서 확인하고, 미패치 버전이면 업데이트가 필요합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel