CVE-2026-23359
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2026-23359 is a stack-out-of-bounds write vulnerability in the Linux kernel's BPF devmap implementation, specifically in the get_upper_ifindexes() function. The function iterates over all upper network devices and writes their interface indices into a stack-allocated array (excluded_devices[1+MAX_NEST_DEV]) without bounds checking, allowing the array to be overflowed when more than MAX_NEST_DEV (8) upper devices exist. Affected Linux kernel versions include 5.15.x through 7.0-rc7 across multiple stable branches. The vulnerability was published on March 25, 2026, and carries a CVSS v3.1 base score of 7.8 (High) (Red Hat CVE, Feedly).

Technical details

The root cause is classified as CWE-787 (Out-of-bounds Write). The get_upper_ifindexes() function in the kernel's BPF devmap code assumes the number of upper devices is bounded by MAX_NEST_DEV (8), but this assumption is incorrect — configurations with many macvlan interfaces can exceed this limit. Callers allocate excluded_devices[1+MAX_NEST_DEV] on the stack, and when more than 8 upper devices are present, subsequent writes overflow the stack buffer. The fix adds a max parameter to get_upper_ifindexes() to enforce bounds, returning -EOVERFLOW and aborting the XDP redirect when the limit is exceeded. Exploitation requires a local attacker to create more than 8 macvlan devices on a network interface with an XDP program attached using BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS flags, then send a packet to trigger the redirect path (Red Hat CVE, Kernel Patch).

Impact

Successful exploitation can result in kernel memory disclosure (confidentiality), corruption of kernel state (integrity), or a system crash causing denial of service (availability). Because the overflow occurs in kernel stack memory, an attacker may be able to overwrite adjacent stack data, potentially enabling privilege escalation or arbitrary kernel code execution. The CVSS v3.1 score reflects high impact across all three security dimensions (Red Hat CVE, Feedly).

Exploitation steps

  1. Gain local access: Obtain a low-privileged local account on a target Linux system running a vulnerable kernel version (5.15.x–7.0-rc7) with BPF and XDP support enabled.
  2. Attach an XDP program: Load and attach an XDP program to a network interface using the BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS flags, enabling the broadcast redirect path that calls get_upper_ifindexes().
  3. Create excessive macvlan devices: Using ip link add or equivalent, create more than 8 (MAX_NEST_DEV) macvlan interfaces on top of the target network device to exceed the stack-allocated array size.
  4. Trigger the overflow: Send a network packet to the device to trigger the XDP redirect path, causing get_upper_ifindexes() to iterate over all upper devices and write beyond the bounds of excluded_devices[1+MAX_NEST_DEV] on the kernel stack.
  5. Achieve impact: The out-of-bounds write corrupts adjacent kernel stack memory, potentially leading to kernel panic (DoS), kernel memory disclosure, or privilege escalation depending on what data is overwritten (Red Hat CVE, Feedly).

Indicators of compromise

  • Logs: Unexpected kernel oops, BUG, or stack corruption messages in /var/log/kern.log or dmesg output, particularly referencing devmap, bpf, or XDP redirect code paths.
  • Network: Sudden appearance of more than 8 macvlan interfaces on a single parent network device (ip link show or ip link list type macvlan).
  • Process: Unusual use of ip link, bpftool, or similar network/BPF configuration utilities by non-root or low-privileged users.
  • File System: Unexpected BPF program objects loaded and pinned in /sys/fs/bpf/ by non-administrative users.
  • System Behavior: Kernel panics or system crashes with stack traces involving bpf_devmap_redirect, dev_map_enqueue_multi, or get_upper_ifindexes function names in crash dumps.

Mitigation and workarounds

Apply the available kernel patches for the specific version in use: update to 5.15.203 or later (5.15.x branch), 6.1.167 or later (6.1.x), 6.6.130 or later (6.2.x–6.6.x), 6.12.77 or later (6.7.x–6.12.x), 6.18.17 or later (6.13.x–6.18.x), 6.19.7 or later (6.19.x), or 7.0-rc2 or later (7.0 release candidates). Microsoft Azure Linux 3 users should apply the updated kernel package. As a temporary workaround if patching is not immediately possible, restrict the creation of macvlan devices on XDP-enabled interfaces, limit BPF program attachment to trusted administrators only, and consider disabling XDP broadcast redirect functionality if not operationally required (Red Hat CVE, Microsoft MSRC, Kernel Patch).

Community reactions

Red Hat published a CVE advisory and associated Bugzilla entry shortly after disclosure on March 25, 2026. Microsoft acknowledged the vulnerability affects Azure Linux 3 (kernel 6.6.126.1-1) and published an MSRC advisory. Downstream distributions including Debian, SUSE, and Amazon Linux 2023 have issued their own security advisories and updated kernel packages. No notable independent researcher commentary or significant social media discussion has been identified beyond routine vulnerability tracking (Red Hat CVE, 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