
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS flags, enabling the broadcast redirect path that calls get_upper_ifindexes().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.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./var/log/kern.log or dmesg output, particularly referencing devmap, bpf, or XDP redirect code paths.ip link show or ip link list type macvlan).ip link, bpftool, or similar network/BPF configuration utilities by non-root or low-privileged users./sys/fs/bpf/ by non-administrative users.bpf_devmap_redirect, dev_map_enqueue_multi, or get_upper_ifindexes function names in crash dumps.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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."