Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98021 Overview
CVE-2026-98021 is a Linux kernel vulnerability in the networking subsystem. The flaw allows unprivileged users in a user and network namespace to bypass the S16_MAX cap on tx_queue_len. The function rtnl_create_link() assigns IFLA_TXQLEN directly to dev->tx_queue_len without routing through netif_change_tx_queue_len(). As a result, an attacker can create a device with an oversized transmit queue length through ip link add ... txqueuelen 500000. This triggers oversized ring allocations in pfifo_fast, tun, and tap queue disciplines, enabling local resource exhaustion.
Critical Impact
Unprivileged users in a user+net namespace can force oversized kernel ring allocations, leading to denial of service through memory exhaustion.
Affected Products
- Linux kernel networking subsystem (rtnetlink link creation path)
- Kernels with CONFIG_NET_SCHED=y, CONFIG_VETH=y, CONFIG_USER_NS=y, CONFIG_NET_NS=y
- pfifo_fast, tun, and tap queue disciplines consuming tx_queue_len
Discovery Timeline
- 2026-09-25 - CVE CVE-2026-98021 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-98021
Vulnerability Analysis
The Linux kernel's rtnetlink interface permits user-space configuration of network devices. During link creation, rtnl_create_link() copies IFLA_TXQLEN from the netlink message directly into dev->tx_queue_len. This path skips the validation performed by netif_change_tx_queue_len(), which enforces the S16_MAX upper bound. The veth peer nest handled by rtnl_nla_parse_ifinfomsg() and the RTM_NEWLINK path on existing devices reach the same unchecked assignment.
An oversized tx_queue_len value propagates into queue disciplines that allocate per-queue rings sized by this field. The pfifo_fast, tun, and tap sinks allocate kernel memory proportional to the attacker-controlled value, consuming unbounded resources.
Root Cause
The root cause is missing input validation at the netlink attribute parsing layer. The ifla_policy table did not constrain IFLA_TXQLEN to a safe range. The fix enforces the bound by declaring IFLA_TXQLEN as NLA_POLICY_FULL_RANGE(NLA_U32, &txqlen_range) with txqlen_range = { .min = 0, .max = S16_MAX }. All netlink consumers now reject out-of-range values with -ERANGE and an "integer out of range" extack message before any device state changes.
Attack Vector
An unprivileged local user creates a user and network namespace with unshare -Urn. Inside the namespace, the user issues ip link add v0 txqueuelen 500000 type veth peer name v1. On an unpatched kernel, the oversized value is accepted and inflates subsequent queue discipline ring allocations. The ip link set v0 txqueuelen 500000 path on existing devices is equally affected. Exploitation requires only standard user privileges on systems with user namespaces enabled.
The vulnerability mechanism is documented in the upstream commits linked in Kernel Git Commit 1aa9e143 and Kernel Git Commit a638a262.
Detection Methods for CVE-2026-98021
Indicators of Compromise
- Network device creation events specifying txqueuelen values greater than 32767 (S16_MAX)
- Unexpected kernel memory growth attributable to pfifo_fast, tun, or tap queue allocations
- Audit log entries for ip link add or ip link set operations issued from unprivileged user namespaces
Detection Strategies
- Enable kernel audit rules on rtnetlink operations to capture RTM_NEWLINK and RTM_SETLINK messages with abnormal IFLA_TXQLEN values
- Monitor process execution for unshare -Urn followed by ip link commands initiated by non-root users
- Baseline normal tx_queue_len values across managed hosts and alert on deviations above 1000
Monitoring Recommendations
- Collect /proc/slabinfo metrics to detect sudden growth in network-related slab caches
- Forward kernel ring buffer messages to a centralized log platform for anomaly review
- Track user namespace creation rates per host and investigate outliers
How to Mitigate CVE-2026-98021
Immediate Actions Required
- Apply the upstream kernel patches referenced in the stable tree commits as soon as distribution updates become available
- Restrict user namespace creation on hosts that do not require it by setting kernel.unprivileged_userns_clone=0 where supported
- Audit multi-tenant and container hosts for unprivileged processes capable of invoking rtnetlink operations
Patch Information
The fix enforces IFLA_TXQLEN validation in the ifla_policy netlink policy table using NLA_POLICY_FULL_RANGE with a maximum of S16_MAX. All netlink paths including rtnl_setlink(), rtnl_newlink(), and the veth peer nest now reject oversized values at parse time. The documentation in rt-link.yaml records the bound. See Kernel Git Commit 2fd0880f and Kernel Git Commit 45ca9f59 for the applied changes.
Workarounds
- Disable unprivileged user namespaces where operationally feasible to block the primary exploitation path
- Apply seccomp or Linux Security Module policies that restrict rtnetlink socket operations for untrusted workloads
- Set container runtime defaults to drop CAP_NET_ADMIN for workloads that do not require network configuration
# Configuration example
sysctl -w kernel.unprivileged_userns_clone=0
echo 'kernel.unprivileged_userns_clone=0' >> /etc/sysctl.d/99-harden-userns.conf
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

