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-98022 Overview
CVE-2026-98022 is a Linux kernel denial-of-service vulnerability in the networking subsystem. Several subsystems allocate ring buffers sized by dev->tx_queue_len without an upper bound. An unprivileged user operating inside a user and network namespace created with unshare -Urn can set an arbitrarily large tx_queue_len value. This causes pfifo_fast, tun, and tap (macvtap/ipvtap) subsystems to allocate oversized skb_array and ptr_ring structures, exhausting global kernel memory. The upstream fix caps new_len at S16_MAX (32767) inside netif_change_tx_queue_len(), the single entry point used by IFLA_TXQLEN, sysfs, and the SIOCSIFTXQLEN ioctl.
Critical Impact
Unprivileged local users can trigger kernel memory exhaustion and system-wide denial of service through unbounded ring buffer allocations.
Affected Products
- Linux kernel networking subsystem (net/core, net/sched)
- pfifo_fast queue discipline, tun driver, tap driver (macvtap, ipvtap)
- Kernels built with CONFIG_NET_SCHED=y, CONFIG_VETH=y, CONFIG_USER_NS=y, CONFIG_NET_NS=y
Discovery Timeline
- 2026-09-25 - CVE-2026-98022 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-98022
Vulnerability Analysis
The flaw stems from tx_queue_len being treated as both a per-ring sizing multiplier and a general queue-length knob, with no sanity cap at the setter. Three code paths amplify the issue:
- pfifo_fast_init() and pfifo_fast_change_tx_queue_len() allocate three skb_array rings sized at tx_queue_len entries each.
- tun_queue_resize() and the queue-attach path resize ptr_rings to tx_queue_len on the NETDEV_CHANGE_TX_QUEUE_LEN notifier.
- tap_queue_resize() and tap_init() perform the same ptr_ring resize for macvtap and ipvtap.
Reproduction confirms the memory pressure. Setting tx_queue_len to 500000 and attaching mq+pfifo_fast across veth pairs exhausts a 2GB guest in roughly 28 iterations. Creating 50 tun devices with IFF_MULTI_QUEUE and opening eight queues each allocates about 1.6GB of ptr_ring memory, out-of-memory killing a 512MB guest.
Root Cause
The setter functions accepted any value representable in an unsigned long. The pre-existing truncation check did not reject very large values that remained valid after conversion. Negative ifr_qlen input from the ioctl path also wrapped above the intended bound.
Attack Vector
An unprivileged user creates a user and network namespace with unshare -Urn, then issues RTM_NEWLINK, RTM_SETLINK, sysfs writes, or SIOCSIFTXQLEN ioctls against devices such as veth, tun, or tap. Each successful set triggers large ring allocations until kernel memory is exhausted.
See the upstream fix in Kernel Git Commit 081340c for the single-point cap added to netif_change_tx_queue_len().
Detection Methods for CVE-2026-98022
Indicators of Compromise
- Repeated RTM_NEWLINK or RTM_SETLINK netlink messages setting IFLA_TXQLEN above 32767 from non-root UIDs.
- Sudden allocation spikes in kmalloc slabs backing skb_array and ptr_ring structures.
- OOM-killer events naming kernel allocation sites in pfifo_fast_init, tun_queue_resize, or tap_queue_resize.
Detection Strategies
- Audit setsockopt/ioctl and netlink activity for SIOCSIFTXQLEN calls originating from processes inside user namespaces.
- Monitor /sys/class/net/<iface>/tx_queue_len writes for values exceeding 32767 and correlate with the writing process.
- Alert on process behavior matching namespace-escape primitives such as unshare -Urn followed by rapid interface creation.
Monitoring Recommendations
- Enable kernel audit rules (auditctl) for netlink route socket writes and sysfs writes to network device attributes.
- Track MemAvailable and slab growth rates to catch rapid kernel-side allocation storms.
- Baseline normal tx_queue_len values across fleet hosts to identify outliers quickly.
How to Mitigate CVE-2026-98022
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced in the NVD entry as soon as vendor builds are available.
- Restrict unprivileged user namespace creation on hosts that do not require it by setting kernel.unprivileged_userns_clone=0 where supported.
- Inventory multi-tenant and container hosts for workloads that create tun, tap, or veth interfaces from unprivileged contexts.
Patch Information
The fix caps new_len at S16_MAX (32767) inside netif_change_tx_queue_len(), rejecting oversized values with -ERANGE before dev->tx_queue_len is written and before any notifier fires. The relevant upstream commits are Kernel Git Commit 081340c, Kernel Git Commit 66ab4c5, Kernel Git Commit 81c0e02, and Kernel Git Commit a03b927. Patch 2/3 adds an NLA_POLICY_FULL_RANGE policy for the u32 IFLA_TXQLEN attribute.
Workarounds
- Disable unprivileged user namespaces on hosts that do not require them to block the unshare -Urn precondition.
- Apply seccomp or Landlock policies that deny unshare(CLONE_NEWUSER|CLONE_NEWNET) to untrusted workloads.
- Use cgroup memory limits on container workloads to contain the blast radius of kernel allocation storms until patches land.
# Configuration example
sysctl -w kernel.unprivileged_userns_clone=0
echo 'kernel.unprivileged_userns_clone=0' >> /etc/sysctl.d/99-cve-2026-98022.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

