CVE-2026-23359

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

No CVSS score yet EPSS 0.21%

Published 25 Mar 2026 Updated 10 Nov 2026 CNA: Linux

Check your servers for CVE-2026-23359

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-23359 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

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

get_upper_ifindexes() iterates over all upper devices and writes their indices into an array without checking bounds.

Also the callers assume that the max number of upper devices is MAX_NEST_DEV and allocate excluded_devices[1+MAX_NEST_DEV] on the stack, but that assumption is not correct and the number of upper devices could be larger than MAX_NEST_DEV (e.g., many macvlans), causing a stack-out-of-bounds write.

Add a max parameter to get_upper_ifindexes() to avoid the issue. When there are too many upper devices, return -EOVERFLOW and abort the redirect.

To reproduce, create more than MAX_NEST_DEV(8) macvlans on a device with an XDP program attached using BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS. Then send a packet to the device to trigger the XDP redirect path.

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.61% of all scored CVEs. Scores of 30 Nov 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from aeea1b86f9363f3feabb496534d886f082a89f21, before 88df604f0d16a692867582350ce3f2fcd22243f1
affected from aeea1b86f9363f3feabb496534d886f082a89f21, before 5000e40acc8d0c36ab709662e32120986ac22e7e
affected from aeea1b86f9363f3feabb496534d886f082a89f21, before 8a95fb9df1105b1618872c2846a6c01e3ba20b45
affected from aeea1b86f9363f3feabb496534d886f082a89f21, before d2c31d8e03d05edc16656e5ffe187f0d1da763d7
affected from aeea1b86f9363f3feabb496534d886f082a89f21, before 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2
affected from aeea1b86f9363f3feabb496534d886f082a89f21, before ca831567908fd3f73cf97d8a6c09a5054697a182
affected from aeea1b86f9363f3feabb496534d886f082a89f21, before b7bf516c3ecd9a2aae2dc2635178ab87b734fef1
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 5.15.203 up to and including 5.15.*
unaffected from 6.1.167 up to and including 6.1.*
unaffected from 6.6.130 up to and including 6.6.*
unaffected from 6.12.77 up to and including 6.12.*
unaffected from 6.18.17 up to and including 6.18.*
unaffected from 6.19.7 up to and including 6.19.*
unaffected 7.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-23359 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-23359

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-23359
trivy image --scanners vuln IMAGE | grep CVE-2026-23359

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-23359 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.