CVE-2026-52945: Linux Kernel WireGuard Decryption Stall Vulnerability
A vulnerability in the Linux kernel's WireGuard implementation causes network traffic decryption to stall and become unresponsive under certain conditions. When WireGuard processes incoming encrypted data for decryption, a race condition in the packet handling logic can cause the decryption queue to fill completely, blocking all further decryption for a specific peer connection while other peers continue working normally. Once triggered, the affected peer remains stuck until the system is restarted, even though CPU and memory appear healthy. This issue stems from a 2023 kernel change that switched WireGuard to use threaded NAPI (Network API), and has been observed in production Kubernetes clusters using Cilium with WireGuard encryption.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.5 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- —
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-24 / 2026-07-14
NVD description (verbatim)
In the Linux kernel, the following vulnerability has been resolved: Revert "wireguard: device: enable threaded NAPI" This reverts commit 933466fc50a8e4eb167acbd0d8ec96a078462e9c which is commit db9ae3b6b43c79b1ba87eea849fd65efa05b4b2e upstream. We have had three independent production user reports in combination with Cilium utilizing WireGuard as encryption underneath that k8s Pod E/W traffic to certain peer nodes fully stalled. The situation appears as follows: - Occurs very rarely but at random times under heavy networking load. - Once the issue triggers the decryption side stops working completely for that WireGuard peer, other peers keep working fine. The stall happens also for newly initiated connections towards that particular WireGuard peer. - Only the decryption side is affected, never the encryption side. - Once it triggers, it never recovers and remains in this state, the CPU/mem on that node looks normal, no leak, busy loop or crash. - bpftrace on the affected system shows that wg_prev_queue_enqueue fails, thus the MAX_QUEUED_PACKETS (1024 skbs!) for the peer's rx_queue is reached. - Also, bpftrace shows that wg_packet_rx_poll for that peer is never called again after reaching this state for that peer. For other peers wg_packet_rx_poll does get called normally. - Commit db9ae3b ("wireguard: device: enable threaded NAPI") switched WireGuard to threaded NAPI by default. The default has not been changed for triggering the issue, neither did CPU hotplugging occur (i.e. 5bd8de2 ("wireguard: queueing: always return valid online CPU in wg_cpumask_choose_online()")). - The issue has been observed with stable kernels of v5.15 as well as v6.1. It was reported to us that v5.10 stable is working fine, and no report on v6.6 stable either (somewhat related discussion in [0] though). - In the WireGuard driver the only material difference between v5.10 stable and v5.15 stable is the switch to threaded NAPI by default. [0] https://lore.kernel.org/netdev/CA+wXwBTT74RErDGAnj98PqS=wvdh8eM1pi4q6tTdExtjnokKqA@mail.gmail.com/ Breakdown of the problem: 1) skbs arriving for decryption are enqueued to the peer->rx_queue in wg_packet_consume_data via wg_queue_enqueue_per_device_and_peer. 2) The latter only moves the skb into the MPSC peer queue if it does not surpass MAX_QUEUED_PACKETS (1024) which is kept track in an atomic counter via wg_prev_queue_enqueue. 3) In case enqueueing was successful, the skb is also queued up in the device queue, round-robin picks a next online CPU, and schedules the decryption worker. 4) The wg_packet_decrypt_worker, once scheduled, picks these up from the queue, decrypts the packets and once done calls into wg_queue_enqueue_per_peer_rx. 5) The latter updates the state to PACKET_STATE_CRYPTED on success and calls napi_schedule on the per peer->napi instance. 6) NAPI then polls via wg_packet_rx_poll. wg_prev_queue_peek checks on the peer->rx_queue. It will wg_prev_queue_dequeue if the queue->peeked skb was not cached yet, or just return the latter otherwise. (wg_prev_queue_drop_peeked later clears the cache.) 7) From an ordering perspective, the peer->rx_queue has skbs in order while the device queue with the per-CPU worker threads from a global ordering PoV can finish the decryption and signal the skb PACKET_STATE_CRYPTED out of order. 8) A situation can be observed that the first packet coming in will be stuck waiting for the decryption worker to be scheduled for a longer time when the system is under pressure. 9) While this is the case, the other CPUs in the meantime finish decryption and call into napi_schedule. 10) Now in wg_packet_rx_poll it picks up the first in-order skb from the peer->rx_queue and sees that its state is still PACKET_STATE_UNCRYPTED. The NAPI poll routine then exits e ---truncated---
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability arises from an ordering problem in WireGuard's packet decryption pipeline introduced by commit db9ae3b ("wireguard: device: enable threaded NAPI"). The issue occurs when packets arrive for decryption and are enqueued to a peer's rx_queue via wg_queue_enqueue_per_device_and_peer, which enforces a MAX_QUEUED_PACKETS limit of 1024 skbs per peer. Under heavy load, the per-CPU decryption worker threads can complete decryption out-of-order relative to arrival sequence. When this happens, the NAPI polling routine (wg_packet_rx_poll) encounters an out-of-order skb whose decryption is not yet complete, causing it to exit early. Subsequently, no further napi_schedule calls occur for that peer, leaving remaining queued packets permanently stuck. The queue fills to capacity, wg_prev_queue_enqueue fails on new arrivals, and the decryption path ceases for that peer entirely while others operate normally. Notably, the encryption path is unaffected.
Business impact
Organizations operating WireGuard-encrypted Kubernetes networks, particularly those using Cilium for pod-to-pod encryption, face intermittent but critical connectivity loss. Affected nodes experience complete unidirectional communication failure for specific peer connections under production load, manifesting as network timeouts and service unavailability. Because the issue occurs rarely but randomly and never self-recovers without system restart, it presents significant operational risk for high-availability environments. The stall is transparent to standard monitoring (CPU, memory, and process-level metrics appear normal), potentially causing confusion during incident response. Recovery requires manual node intervention, impacting cluster resilience.
Affected systems
The Linux kernel in versions v5.15 stable and v6.1 stable are confirmed affected when WireGuard is deployed. The issue does not occur in v5.10 stable (pre-threaded NAPI implementation) or v6.6 stable. Any system running WireGuard on affected kernel versions, particularly in containerized or Kubernetes environments using Cilium with WireGuard underlay encryption for east-west traffic, is at risk. The vulnerability requires specific conditions: heavy networking load, multiple peer connections, and the threaded NAPI feature enabled (the default in affected versions).
Exploitability
This is not a remote code execution or privilege escalation vulnerability. Exploitation does not require special network access or crafted packets; the vulnerability triggers naturally under legitimate heavy traffic conditions. An attacker cannot directly trigger the stall from outside, but an authenticated user or operator who can generate sustained high-volume traffic to a WireGuard peer may increase the probability of triggering the condition. The practical exploitability is low for weaponization but high as a denial-of-service vector if an attacker controls one endpoint of a WireGuard tunnel and deliberately floods traffic patterns that induce the race condition.
Remediation
The Linux kernel community has reverted the problematic threaded NAPI change. Organizations should apply kernel updates that include this revert. Verify against your Linux distribution's security advisory for the specific patched kernel version for your branch (v5.15, v6.1, or others in the affected range). Interim mitigation: disable threaded NAPI for WireGuard if possible via kernel boot parameters or module options, though this may impact performance. Upgrade to v6.6 stable or newer if feasible, as this version does not exhibit the issue. For Kubernetes operators, consider temporarily suspending WireGuard-based pod encryption until patched kernels are deployed, or isolating the affected nodes.
Patch guidance
Apply kernel security updates provided by your Linux distribution for the affected stable branches (v5.15-stable and v6.1-stable). The patch reverts commit db9ae3b6b43c79b1ba87eea849fd65efa05b4b2e. Check your vendor's security advisory (Red Hat, Canonical, SUSE, etc.) for the specific kernel version that includes this revert. Test the patched kernel in a non-production environment first, particularly on systems using WireGuard with heavy traffic loads. After patching, monitor for any recovery of previously stalled connections; affected peers may require manual intervention (interface reset or node reboot) if they entered the stuck state before patching. Document the kernel version in your deployment to prevent regression if future kernel updates occur.
Detection guidance
Monitor WireGuard interfaces for asymmetric behavior: track received vs. processed packets per peer using wg show or netlink interfaces. Alert on situations where a specific peer's rx_queue depth approaches or reaches 1024 queued packets, or where received packet count increases but processed count stalls. Use bpftrace scripts to instrument wg_prev_queue_enqueue (watch for failures), wg_packet_rx_poll (watch for missing calls on a peer), and wg_queue_enqueue_per_peer_rx to detect out-of-order packet state transitions. Enable kernel debug logging for WireGuard if available. In Kubernetes environments, correlate pod-to-pod connectivity timeouts with specific node pairs and check corresponding WireGuard peer status. Cross-reference timing with system load metrics to identify heavy-load triggers.
Why prioritize this
A CVSS 7.5 HIGH vulnerability causing confirmed production outages in Kubernetes clusters warrants immediate attention despite not being remotely exploitable as a traditional code execution issue. The practical impact—complete traffic loss to a peer with no automatic recovery—meets the threshold for critical severity in cloud-native environments. The intermittent nature and lack of standard alerting (CPU/memory appear normal) increase the incident response burden. The fix is a revert of a recent change, suggesting low risk of introducing new issues with the patch. This should be prioritized for kernel updates within the same SLA as high-severity patches in affected deployments.
Risk score, explained
The CVSS 7.5 score reflects a network-accessible denial of service with high impact (complete traffic loss) but no confidentiality or integrity impact and no privilege escalation. The score appropriately captures the severity from an availability perspective. However, in practical terms, the risk is elevated for Kubernetes operators where east-west traffic encryption is critical; organizations relying on WireGuard for cluster security should treat this as equivalent to a 8.0+ severity issue operationally. The lack of KEV status (no active in-the-wild exploitation documented) slightly mitigates the score, but the vulnerability's consistency and reproducibility under known conditions (heavy load on affected kernels) argues for aggressive patching.
Frequently asked questions
Does this vulnerability require an attacker or only affect systems under self-generated load?
The vulnerability triggers naturally under legitimate heavy traffic conditions between WireGuard peers. An attacker cannot remotely trigger it without controlling one endpoint of the tunnel and deliberately sending traffic patterns designed to induce the race condition. In Kubernetes, a compromised pod with network access to other pods could potentially amplify the effect, but the core issue arises from normal operation under load.
Will a system automatically recover from a stalled peer after patching the kernel?
No. Patching stops new occurrences of the issue on reboot, but if a peer connection has already entered the stuck state before patching, that peer remains blocked. Manual intervention is required: reset the WireGuard interface or reboot the node. After patching and recovery, the peer should operate normally.
Is WireGuard's encryption or decryption completely broken, or only affected in specific scenarios?
Only the decryption path for a specific peer is affected, and only after the race condition is triggered. Encryption remains unaffected, as does decryption for other peers. The stall is selective—some peers may work while one is frozen—making the symptom easy to misdiagnose as a peer-specific network issue rather than a kernel bug.
What kernel versions should I upgrade to to resolve this issue?
Apply security updates for v5.15-stable or v6.1-stable that include the revert of commit db9ae3b. Alternatively, upgrade to v6.6-stable or newer, which does not exhibit the issue. Consult your Linux distribution's security advisory to identify the specific kernel version number containing the fix.
This analysis is based on publicly available vulnerability data and kernel commit information as of the publication date. Specific patch version numbers, affected product versions, and remediation timelines should be verified against official Linux distribution security advisories and the upstream Linux kernel project. Organizations should conduct internal testing of patches before deploying to production. This vulnerability does not appear on the CISA KEV catalog as of the analysis date, indicating no confirmed active exploitation in the wild, though that status may change. The technical details provided are derived from kernel mailing list discussions and should be validated against your specific system configuration and kernel version. Source: NVD (public-domain), retrieved 2026-07-30. Analysis generated by SEC.co (claude-haiku-4-5).
Affected vendors
Related vulnerabilities
- CVE-2026-0270HIGHCortex XSOAR Path Traversal on Linux — Exploit Requirements & Patching Guide
- CVE-2026-0271HIGHPalo Alto Networks Prisma Access Agent Linux Privilege Escalation
- CVE-2026-10001HIGHChrome Sandbox Escape via PerformanceManager Use-After-Free
- CVE-2026-10002HIGHGoogle Chrome PDFium Use-After-Free Vulnerability (CVSS 8.8)
- CVE-2026-10003HIGHChrome Use-After-Free Code Execution Vulnerability Analysis
- CVE-2026-10006HIGHChrome WebAudio Race Condition Remote Code Execution
- CVE-2026-10007HIGHChrome Use-After-Free in SVG Arbitrary Code Execution (CVSS 8.8)
- CVE-2026-10009HIGHChrome Skia Integer Overflow Sandbox Escape – Patch Guidance