CVE-2026-80634

netfilter: flowtable: avoid num_encaps underflow on bridge VLAN untag

Published Aug 28, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

netfilter: flowtable: avoid num_encaps underflow on bridge VLAN untag

The DEV_PATH_BR_VLAN_UNTAG case post-decrements info->num_encaps
inside WARN_ON_ONCE(). num_encaps is u8, so if it's already 0 the
decrement still happens and wraps it to 255. The break only leaves
the inner switch -- a later path entry can set info->indev back to
a real device, and we end up returning with num_encaps == 255.

nft_dev_forward_path() then walks info.encap[] (size 2) up to
num_encaps, which means an OOB stack read and a bogus count copied
into the route descriptor.

Should only happen on a malformed bridge path stack, hence the WARN,
but worth handling sanely. Move the decrement out of the WARN.

[ While at this, remove the WARN_ON_ONCE since this can only happen
with a buggy bridge path stack --pablo ].

Analysis

AI-generated

Technical impact

In the Linux kernel, the netfilter flowtable component has an integer underflow bug that occurs during bridge VLAN untag processing. When the 8‑bit counter num_encaps is decremented while already at 0, it wraps to 255. The counter is later used to index a two‑element encapsulation array, causing the kernel to read beyond the bounds exposing stack data and potentially corrupting routing descriptors via an out‑of‑bounds read (CWE‑125). This results in a stack data disclosure and may disrupt packet forwarding when the malformed path is encountered.

Affected Systems

All Linux kernel users that employ the default netfilter flowtable implementation are affected. The issue exists in any kernel release prior to the commit that patches the underflow; specific version ranges are not listed, so assume all kernels older than the fix are at risk.

Risk and Exploitability

The bug is triggered only by a malformed bridge path stack, so the likely attack vector involves configuring a malicious bridge VLAN untag or crafting packets to induce the underflow. Based on the description, it is inferred that the attacker would need to manipulate bridge configurations to create the malformed path. The CVSS score of 9.8 indicates high severity, while the EPSS score is below 1% and the vulnerability is not listed in CISA’s KEV catalog, implying no known public exploitation. Operators should treat the vulnerability as high risk when the necessary conditions can be met.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that contains the netfilter flowtable underflow fix.
  • Reboot the system to load the patched kernel.
  • Disallow or correct any bridge VLAN untag configurations that could create malformed path stacks until the kernel is updated.

Generated by OpenCVE AI on September 2, 2026 at 05:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4904-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9002-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-119
CWE-190
Type Values Removed Values Added
Weaknesses CWE-119
CWE-190
Type Values Removed Values Added
Weaknesses CWE-125
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-125
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: netfilter: flowtable: avoid num_encaps underflow on bridge VLAN untag The DEV_PATH_BR_VLAN_UNTAG case post-decrements info->num_encaps inside WARN_ON_ONCE(). num_encaps is u8, so if it's already 0 the decrement still happens and wraps it to 255. The break only leaves the inner switch -- a later path entry can set info->indev back to a real device, and we end up returning with num_encaps == 255. nft_dev_forward_path() then walks info.encap[] (size 2) up to num_encaps, which means an OOB stack read and a bogus count copied into the route descriptor. Should only happen on a malformed bridge path stack, hence the WARN, but worth handling sanely. Move the decrement out of the WARN. [ While at this, remove the WARN_ON_ONCE since this can only happen with a buggy bridge path stack --pablo ].
Title netfilter: flowtable: avoid num_encaps underflow on bridge VLAN untag
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:30 PM
Reserved
Aug 26, 2026, 2:34 PM
Status
Received
Published
Aug 28, 2026, 8:16 AM
Modified
Oct 30, 2026, 1:20 PM
Severity
Moderate
Public date
Aug 28, 2026, 12:00 AM