Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 154FB35DA69 for ; Sat, 25 Apr 2026 08:48:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777106882; cv=none; b=GGCiwqiy4Zxf/3rGk8xkpPU7TWY3ekl3D0eCDYts/Q7O4gvRdbujJIgXIoRnS5YdZZ0ZrekRpLxaeJ7LrwIbKgmM7AhPeOByOQa5uFFyQggeiuP3+oRct6fkO7KC6ijB8P4O+JbxTIWeTQXEDJIabTPYs+xXIIr+0QRn4zLvzqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777106882; c=relaxed/simple; bh=nqW41f8x1hWM80TMHYc+ni3CloJclEXFMAD5UXr3z4Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Al0dL9rEhYHHt5p+DRzfVeKCr/azI5sdqEWQpcbRbju/c1GNdzQNzFV5s8zJD4/z4CPZXQubS6RpGFhFuFHv/PgBN4CMncpMpI6o4pAcBXdKhqGCqGg8O/wehHip0LpCx0DVRnXfAVcMQp8YHXyI6a6YyVeqAd1J8155K3Nzroo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M7BZDpLt; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="M7BZDpLt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 919B6C2BCB0; Sat, 25 Apr 2026 08:48:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777106882; bh=nqW41f8x1hWM80TMHYc+ni3CloJclEXFMAD5UXr3z4Q=; h=From:To:Cc:Subject:Date:Reply-To:From; b=M7BZDpLtqKsLqjP6dA9k5d/TIPaonaVrAqYAFc9wHG+48Ud1KK0tkBHevfcTnXsUW jGJd388mWC7lwc/xGuBwwLqpYwntSThdqyXIpMDznZ/MJU3iU/cm2NYzt+jhPXbg5N h/yHENQrMQZ/1P3c/w6waVd3GyM6TMvwOQksx98U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31684: net: sched: act_csum: validate nested VLAN headers Date: Sat, 25 Apr 2026 10:46:51 +0200 Message-ID: <2026042545-CVE-2026-31684-6974@gregkh> X-Mailer: git-send-email 2.54.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=2963; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=udOMQHUjK64ffx/PX2nKZCbmZl++59DMIItoCLfb1MA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlv6kslvna07VWJm1h3OfOc1YMMvf1cSm1Lfqi+4o/7v 0rPr+JHRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExky0SGeeZy0ts/3ata/sFt rcP3I56621ac7WeYX7H3tOb3fJ8fmT6qUz8YHGJ6KdfyEAA= 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: sched: act_csum: validate nested VLAN headers tcf_csum_act() walks nested VLAN headers directly from skb->data when an skb still carries in-payload VLAN tags. The current code reads vlan->h_vlan_encapsulated_proto and then pulls VLAN_HLEN bytes without first ensuring that the full VLAN header is present in the linear area. If only part of an inner VLAN header is linearized, accessing h_vlan_encapsulated_proto reads past the linear area, and the following skb_pull(VLAN_HLEN) may violate skb invariants. Fix this by requiring pskb_may_pull(skb, VLAN_HLEN) before accessing and pulling each nested VLAN header. If the header still is not fully available, drop the packet through the existing error path. The Linux kernel CVE team has assigned CVE-2026-31684 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 and fixed in 6.12.83 with commit a69738efea0996d05a3c7d2178551b891744df1b Issue introduced in 5.1 with commit 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 and fixed in 6.18.24 with commit ec4930979b3f7bbeb7af5744599fc6603a4dba62 Issue introduced in 5.1 with commit 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 and fixed in 6.19.14 with commit 3d165d975305cf76ff0b10a3c798fb31e5f5f9a5 Issue introduced in 5.1 with commit 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 and fixed in 7.0 with commit c842743d073bdd683606cb414eb0ca84465dd834 Issue introduced in 4.19.99 with commit 3764bfae5056e95617b6ee074129297e11710886 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-31684 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/sched/act_csum.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/a69738efea0996d05a3c7d2178551b891744df1b https://git.kernel.org/stable/c/ec4930979b3f7bbeb7af5744599fc6603a4dba62 https://git.kernel.org/stable/c/3d165d975305cf76ff0b10a3c798fb31e5f5f9a5 https://git.kernel.org/stable/c/c842743d073bdd683606cb414eb0ca84465dd834