CVE-2026-23359: bpf: Fix stack-out-of-bounds write in devmap
Vulnerability summary
CVE-2026-23359 is a high (CVSS 7.8) Out-of-bounds Write vulnerability in linux. EPSS estimates a 0.14% chance of exploitation in the next 30 days, higher than 3.4% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 38 · Related 36Timeline
- 25-03-2026PublishedVulnerability first disclosed.
- 15-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.14%
Chance of exploitation in the next 30 days
Percentile
3%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.13% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu145 products
- linux< 5.15.0-186.196 | < 6.8.0-136.136 | All versions (No fix recorded)
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 5.15.0-1112.119 | < 6.8.0-1061.64 | All versions (No fix recorded)
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ aeea1b86f9363f3feabb496534d886f082a89f21, < 88df604f0d16a692867582350ce3f2fcd22243f1 | ≥ aeea1b86f9363f3feabb496534d886f082a89f21, < 5000e40acc8d0c36ab709662e32120986ac22e7e | ≥ aeea1b86f9363f3feabb496534d886f082a89f21, < 8a95fb9df1105b1618872c2846a6c01e3ba20b45 | ≥ aeea1b86f9363f3feabb496534d886f082a89f21, < d2c31d8e03d05edc16656e5ffe187f0d1da763d7 | ≥ aeea1b86f9363f3feabb496534d886f082a89f21, < 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2 | ≥ aeea1b86f9363f3feabb496534d886f082a89f21, < ca831567908fd3f73cf97d8a6c09a5054697a182 | ≥ aeea1b86f9363f3feabb496534d886f082a89f21, < b7bf516c3ecd9a2aae2dc2635178ab87b734fef1 | 5.15
- linux_kernel≥ 5.15.1, < 5.15.203 | ≥ 5.16, < 6.1.167 | ≥ 6.2, < 6.6.130 | ≥ 6.7, < 6.12.77 | ≥ 6.13, < 6.18.17 | ≥ 6.19, < 6.19.7 | 5.15 | 7.0:rc1 | 7.0:rc2 | 7.0:rc3 | 7.0:rc4 | 7.0:rc5 | 7.0:rc6 | 7.0:rc7
Debian1 product
- linux< 6.1.170-1 | < 6.12.85-1 | < 6.19.8-1
3 vendors · 148 products