Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792759068; b=bXyLTNi1trlsGnJtPdxVSYtdwmLobsalp8KWGa3X0QsH6vt0FJR82Cl5ZOWetZl84d1l XUqtcZMC+5q+mUzPIue/mYFuxwl4PnIRh1coIbkjI7mjUeZWJ7qEwZxKfxlXTyD5PYhbs RaFU1ssmak8Kks4B/tDERrdKx4iueYRTbx2mtzLqQfzaV0mhuPhEatxM21uZKqf4SZ25A MeieGsxaKSjI9W5ERKWyMlPcSFwW0XJ9SV2V+J7A24cEaSBQC22ZVc/T2AkKmQSuwJcO1 2J1gFEagPfxZsghn5vCeNjzDVmtiV2WUcABfSB7US57yQAS2spjKuQr1jXLKBGB6wGg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792759068; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=TLJ7yrmH/IzbSIYt3O8cCdhnUk9hCmafMisrvX78uWg=; b=ZfT4wxtodByiZMnQUfszJBHj774GGkgYY6nVhVlyU620j1wKxme/eEPVCcGGXeKHD3Hb 453gT06jASxWOl2HoKB9qpwxjfhtP8jbSXgLBIUw3h/tS6qpS7hxOW5bpu0nGTOvVtxGY nOLZSOIU1S9g5iEWaVXCkSg11IDkUd4Y3DDPptr1hP2AWwyWHwC5Sd4uJb7dh9YoHrfW5 gwPFz90GO7Y5bj2aWoyS+HsVAOcTpMlXAHL5/ZPws5b7FZQJ4QpLlGCeLMHsvZ4gXV+gf jLh5gdvgv8zDsfKz9Draz3rKpR0Cxw9Z/rHjTAaQEr4Ng+hLCK4QUpUfFPP8faLmG/A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=RWRUTfxC; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7BCE606A32A for ; Fri, 23 Oct 2026 12:37:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=RWRUTfxC Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DA521F01829; Fri, 23 Oct 2026 12:37:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792759067; bh=TLJ7yrmH/IzbSIYt3O8cCdhnUk9hCmafMisrvX78uWg=; h=From:To:Cc:Subject:Date:Reply-To; b=RWRUTfxCDlSW8Ceobx6Legj2KNwxuF0eXGj9GZBakbGpU9oXtE2TWLmk6sMzqonTY LdlqIuMxmIIc5I2BhJk3bH+yj+QOWGZ60wTLkvurC/iRY75WzPROqy+HyCVThoaIuS yNdsV2Q9zbDLx5XcKxuByt+BvcNiH1HIPi/xlklM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99033: net/packet: guard the ll header push in packet_rcv_spkt() Date: Fri, 23 Oct 2026 14:20:35 +0200 Message-ID: <2026102325-CVE-2026-99033-c287@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=5086; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2oJ9OU3YUz6dU7clo9rYkDFanqdarOnH+nftPBWoO3w=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A86mTZ2plCYjdXTNtklSBRrzjV0mHs5XXZte5GVza dH57MORHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR3zMYFrSt/8ZZd2ZNAGv0 Kq2drKt979scnMEwVzBD3FDzyOHYG/e1VW+Hv04Ie3dFDwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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: 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. The Linux kernel CVE team has assigned CVE-2026-99033 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit d549699048b4b5c22dd710455bcdb76966e55aa3 and fixed in 6.6.160 with commit d8a24b9e1774a93943caf68d48c5e17be432220b Issue introduced in 5.10 with commit d549699048b4b5c22dd710455bcdb76966e55aa3 and fixed in 6.12.113 with commit 31c7b15b3716e8d0dad58d2c3cdf321dfd06f4be Issue introduced in 5.10 with commit d549699048b4b5c22dd710455bcdb76966e55aa3 and fixed in 6.18.57 with commit 3efe0e0944157fdd2072b4dc7eb0491a317ed272 Issue introduced in 5.10 with commit d549699048b4b5c22dd710455bcdb76966e55aa3 and fixed in 7.2.11 with commit 00fbf71e74115f7628fc0880b855434b1e70c40c Issue introduced in 5.10 with commit d549699048b4b5c22dd710455bcdb76966e55aa3 and fixed in 7.3 with commit 28bc1ef699610ee09ce3d46a00552f5a0a0144bd Issue introduced in 5.9.13 with commit dadddde259a19105ee69e788835f4d4552767aa9 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99033 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/packet/af_packet.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/d8a24b9e1774a93943caf68d48c5e17be432220b https://git.kernel.org/stable/c/31c7b15b3716e8d0dad58d2c3cdf321dfd06f4be https://git.kernel.org/stable/c/3efe0e0944157fdd2072b4dc7eb0491a317ed272 https://git.kernel.org/stable/c/00fbf71e74115f7628fc0880b855434b1e70c40c https://git.kernel.org/stable/c/28bc1ef699610ee09ce3d46a00552f5a0a0144bd