CVE Database›Document archive›CVE-2026-23359

CVE-2026-23359

kernel: bpf: Fix stack-out-of-bounds write in devmap

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · March 25, 2026

Updated · June 28, 2026

Description

A flaw was found in the Linux kernel. The get_upper_ifindexes() function, which collects network device indices, fails to check array boundaries when writing these indices. This allows a local attacker to create a large number of virtual network interfaces (macvlans), causing a stack-out-of-bounds write. The consequence is a denial of service (DoS), as the system aborts network packet redirection, affecting network availability.

Statement

This flaw affects systems using XDP (eXpress Data Path) with BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS on devices with many upper interfaces (>8 macvlans). The stack buffer overflow occurs because MAX_NEST_DEV assumption doesn't hold for all configurations. Requires ability to create many macvlan interfaces and attach XDP programs.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-787 · Out-of-bounds Write