Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB1AF40E8D7 for ; Fri, 9 Oct 2026 07:34:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791531283; cv=none; b=ZP2IxUyf3UBGJHfMdPqGbBgGoU2ryZrQphPkcE9zVLxc9yM7i1GAT4qmehWB1KRmTNSmuc7RYmnbkWh/JYPhQRsfFOqHhQpf6mb+B/MbnBRmgFLV092P1+8k9FWpJW6FfbeVVG9mOFiJAxUWv5pC8tC7gc8t7jyOv24OFqgT3W4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791531283; c=relaxed/simple; bh=5UKDE/4CRuVJlZ3zy5hDgWTN6iD2IWW9RG0LsK0X7Xg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pabfGWYtxVHDtRghgKMp9Cl9WVaxxYVHqnwkF00QQ0eVZsyeG+zrst1aZl8okBqvJTgGD+MQOenlgzg7Y40PjuUvAMnJh3PmsU6Att12i1WHcbv2K7dm+jTMeO8ybOia6iSa7zU4omdeyg0k5MeIhDcCtkAzDEDT9E2KHJ6YJDM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hbE5OVms; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hbE5OVms" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC6B91F000FF; Fri, 9 Oct 2026 07:34:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791531282; bh=ih2n26aQsc4Kf8vtjAJVhbT9Sy2PckTWuIlhbs3UUY4=; h=From:To:Cc:Subject:Date:Reply-To; b=hbE5OVmsGmix5gK+H8OYtdArFneQci729MH7f9hB7ai11Oqq13bEeHNLiurtFcHrE Cf6Y7ujfQMZ3L8uN4tNOJuiX9vBZgqrxZvP484TOAZjMcZ97oXhAL02mhNvdNbvmDM Bn8Vg91bxOZ87+0mX6+DCo5RcFgjiD295j1y/K4g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98377: vlan: require the MAC header to be present in __vlan_insert_inner_tag() Date: Fri, 9 Oct 2026 09:34:18 +0200 Message-ID: <2026100917-CVE-2026-98377-abc4@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3503; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4wDrYfqCEaIK9Igty5wiaroj1/fJbLfm95DkIj7KHxE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFknZvw0S3xu0fH8lAwfw+q+q4dawzqPrXdj+y3yPdo6/ lzIdZO5HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARsXKGBZ257hfqrf9z/5m+ /PqHLYkiJYUKbxkWnNJNjjDN/t04Z0Vx5friL2en2q5fDQA= 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: vlan: require the MAC header to be present in __vlan_insert_inner_tag() __vlan_insert_inner_tag() only guarantees head room via skb_cow_head(), never that mac_len bytes of MAC header are present. Its ETH_HLEN wrappers - __vlan_insert_tag() under skb_vlan_push(), and vlan_insert_tag() under validate_xmit_vlan() on the generic transmit path - therefore rewrite the first 16 bytes at skb->data: a 12-byte memmove plus two 2-byte stores at +12 and +14. No caller supplies the bound, while the pop helpers use skb_ensure_writable()/pskb_may_pull(). An IFF_TUN device has hard_header_len == 0, so packet_snd() accepts a one-byte AF_PACKET/SOCK_RAW frame. The first vlan push only sets a hwaccel tag; the next - clsact "action vlan push" or bpf_skb_vlan_push() - enters the helper with skb->len still 1. The head comes from skbuff_small_head without __GFP_ZERO, so each push drags bytes from beyond skb->tail into the frame. After three the one-byte send leaves as 13 bytes carrying 11 bytes of uninitialised slab: 0000: 5a b3 62 12 80 88 ff ff 00 b3 62 12 81 `------------------------------' only 0x5a was sent; the rest is slab, here the top 56 bits of a linear-map address Require the MAC header the helper rewrites to be present, so such a frame is dropped rather than transmitted. The Linux kernel CVE team has assigned CVE-2026-98377 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.112 with commit 40a5cc4b7251c74f3341332a226d02200e96bccf Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.55 with commit f42562dd027dc4ed103fae17b2206e73ea1963c4 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.9 with commit 59af43ccece4d2d8b62e9e3ccc96b6e2e793bcdc Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3-rc5 with commit ab888242fce4f16f6c4d4c6ec53939ad36aa3b3a 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-98377 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: include/linux/if_vlan.h 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/40a5cc4b7251c74f3341332a226d02200e96bccf https://git.kernel.org/stable/c/f42562dd027dc4ed103fae17b2206e73ea1963c4 https://git.kernel.org/stable/c/59af43ccece4d2d8b62e9e3ccc96b6e2e793bcdc https://git.kernel.org/stable/c/ab888242fce4f16f6c4d4c6ec53939ad36aa3b3a