CVE-2026-23340
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2026-23340 is a use-after-free (UAF) vulnerability in the Linux kernel's network traffic scheduler (qdisc) subsystem, caused by a race condition between qdisc_reset_all_tx_gt() and the lockless dequeue path. When the number of real transmit queues is reduced, qdisc_reset() can execute concurrently with __qdisc_run() for lockless qdiscs, freeing socket buffers (skbs) while they are still being dequeued. Affected Linux kernel versions include 4.16.1 through 5.15.202, 5.16 through 6.1.166, 6.2 through 6.6.129, 6.7 through 6.12.76, and 6.13 through 6.18.16, as well as Microsoft Azure Linux 3 kernel 6.6.126.1-1. The vulnerability was disclosed on March 25, 2026, and carries a CVSS v3.1 base score of 7.8 (High) (Red Hat Bugzilla, Microsoft MSRC).

Technical details

The root cause is a race condition (CWE-364) leading to a use-after-free (CWE-416) in the Linux kernel's net/sched subsystem. When netif_set_real_num_tx_queues() shrinks the number of TX queues, it calls qdisc_reset_all_tx_gt(), which serializes qdisc_reset() using qdisc_lock(). However, lockless qdiscs (those with the TCQ_F_NOLOCK flag) use qdisc->seqlock via qdisc_run_begin/end() for their dequeue path — not qdisc_lock() — meaning qdisc_reset() can race with __qdisc_run() and free skbs that are still actively being dequeued. The fix serializes qdisc_reset_all_tx_gt() against the lockless dequeue path by acquiring qdisc->seqlock for TCQ_F_NOLOCK qdiscs, mirroring the approach already used by dev_reset_queue(). The vulnerability is reproducible on virtio-net by combining heavy UDP traffic with rapid ethtool -L queue pair changes, triggering KASAN slab-use-after-free reports in __qdisc_run() (Red Hat Bugzilla).

Impact

Successful exploitation allows a local attacker with low privileges to trigger kernel crashes (denial of service) via use-after-free conditions in the network scheduler. Beyond crashes, the vulnerability has high confidentiality, integrity, and availability impact, with potential for arbitrary code execution at kernel privilege level on the local system. Affected assets include any Linux system using lockless qdiscs on network interfaces that support dynamic queue reconfiguration (e.g., virtio-net), which is common in virtualized and cloud environments (Red Hat Bugzilla, Feedly).

Exploitation steps

  1. Reconnaissance: Identify a target Linux system running an affected kernel version (4.16.1–5.15.202, 5.16–6.1.166, 6.2–6.6.129, 6.7–6.12.76, or 6.13–6.18.16) with a network interface supporting dynamic queue reconfiguration (e.g., virtio-net in a VM).
  2. Gain local access: Obtain a low-privileged local shell on the target system (e.g., via SSH, container escape, or existing foothold).
  3. Generate heavy network traffic: Launch a high-throughput UDP flood using a tool such as iperf3 to saturate the network interface and keep the qdisc dequeue path (__qdisc_run) continuously active: iperf3 -ub0 -c <peer> -t 0 &
  4. Rapidly change queue pair count: Concurrently and repeatedly alter the number of TX queue pairs using ethtool, triggering netif_set_real_num_tx_queues()qdisc_reset_all_tx_gt() in a tight loop:
while :; do
  ethtool -L eth0 combined 1
  ethtool -L eth0 combined 2
done
  1. Trigger the race condition: The concurrent execution of qdisc_reset() (via queue shrink) and __qdisc_run() (via active dequeue) on a lockless qdisc causes skbs to be freed while still in use, resulting in a use-after-free.
  2. Achieve impact: Depending on kernel configuration and timing, the outcome ranges from a kernel panic/crash (denial of service) to potential arbitrary kernel code execution if the freed memory is reclaimed and controlled by the attacker (Red Hat Bugzilla).

Indicators of compromise

  • Logs: Kernel logs (dmesg / /var/log/kern.log) containing BUG: KASAN: slab-use-after-free in __qdisc_run with call traces through __dev_queue_xmit, ip_finish_output2, udp_sendmsg; entries showing pfifo_fast_reset and qdisc_reset in the freed-by trace.
  • Process Behavior: Repeated rapid invocations of ethtool -L <iface> combined <N> by a low-privileged user, particularly in a tight loop; concurrent high-bandwidth UDP traffic generation (e.g., iperf3) from the same user or process group.
  • System Stability: Unexpected kernel panics or system reboots on hosts with virtio-net or similar interfaces; kernel oops messages referencing net/sched or qdisc subsystems.
  • Network: Sudden drops in network throughput or interface resets coinciding with queue pair configuration changes on virtual network interfaces.

Mitigation and workarounds

Apply kernel updates that include the fix for the qdisc_reset_all_tx_gt() race condition. Patched versions are available across stable kernel series: 5.15.203 (5.15.x), 6.1.167 (6.1.x), 6.6.130 (6.2–6.6.x), 6.12.77 (6.7–6.12.x), 6.18.17 (6.13–6.18.x), and 6.19.7 (6.19.x). Distribution-specific patches have been released by Red Hat, Microsoft (Azure Linux 3), Debian (DSA-6238, DSA-6243, DLA-4561), Amazon Linux 2023, SUSE, and openSUSE. As a temporary workaround where patching is not immediately possible, avoid dynamically changing the number of TX queue pairs on lockless-qdisc interfaces under heavy traffic load (Red Hat Bugzilla, Feedly).

Community reactions

The vulnerability was reported via the upstream Linux kernel CVE announcement list (linux-cve-announce) and tracked by Red Hat's OSIDB system. Multiple major Linux distributions — including Debian, Amazon Linux, SUSE, and openSUSE — have issued security advisories and patched packages. Microsoft acknowledged the issue for Azure Linux 3 via the MSRC advisory portal. No notable independent researcher commentary or significant social media discussion has been identified beyond standard distribution advisory channels (Red Hat Bugzilla, Microsoft MSRC).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management