# CVE-2026-23359: bpf: Fix stack-out-of-bounds write in devmap

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-03-25T10:27:43.070Z
- **Modified:** 2026-11-10T13:18:42.683Z

## Who should check

- Anyone running Linux \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 88df604f0d16a692867582350ce3f2fcd22243f1; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 5000e40acc8d0c36ab709662e32120986ac22e7e; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 8a95fb9df1105b1618872c2846a6c01e3ba20b45; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< d2c31d8e03d05edc16656e5ffe187f0d1da763d7; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< ca831567908fd3f73cf97d8a6c09a5054697a182; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< b7bf516c3ecd9a2aae2dc2635178ab87b734fef1
- Anyone running Linux 5.15

## 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.

## Affected and fixed versions

- Linux: \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 88df604f0d16a692867582350ce3f2fcd22243f1; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 5000e40acc8d0c36ab709662e32120986ac22e7e; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 8a95fb9df1105b1618872c2846a6c01e3ba20b45; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< d2c31d8e03d05edc16656e5ffe187f0d1da763d7; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< ca831567908fd3f73cf97d8a6c09a5054697a182; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< b7bf516c3ecd9a2aae2dc2635178ab87b734fef1 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23359. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23359.md
Affected: Linux >= aeea1b86f9363f3feabb496534d886f082a89f21, < 88df604f0d16a692867582350ce3f2fcd22243f1; >= aeea1b86f9363f3feabb496534d886f082a89f21, < 5000e40acc8d0c36ab709662e32120986ac22e7e; >= aeea1b86f9363f3feabb496534d886f082a89f21, < 8a95fb9df1105b1618872c2846a6c01e3ba20b45; >= aeea1b86f9363f3feabb496…
Fixed in: Linux 88df604f0d16a692867582350ce3f2fcd22243f1, Linux 5000e40acc8d0c36ab709662e32120986ac22e7e, Linux 8a95fb9df1105b1618872c2846a6c01e3ba20b45, Linux 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23359 being exploited?

There is no confirmed exploitation: CVE-2026-23359 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23359?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23359?

Linux \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 88df604f0d16a692867582350ce3f2fcd22243f1; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 5000e40acc8d0c36ab709662e32120986ac22e7e; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 8a95fb9df1105b1618872c2846a6c01e3ba20b45; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< d2c31d8e03d05edc16656e5ffe187f0d1da763d7; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< ca831567908fd3f73cf97d8a6c09a5054697a182; \>= aeea1b86f9363f3feabb496534d886f082a89f21, \< b7bf516c3ecd9a2aae2dc2635178ab87b734fef1; Linux 5.15.

### Is there a fix for CVE-2026-23359?

Yes. Fixed in Linux 88df604f0d16a692867582350ce3f2fcd22243f1, Linux 5000e40acc8d0c36ab709662e32120986ac22e7e, Linux 8a95fb9df1105b1618872c2846a6c01e3ba20b45, Linux 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-23359?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/88df604f0d16a692867582350ce3f2fcd22243f1>
- patch: <https://git.kernel.org/stable/c/5000e40acc8d0c36ab709662e32120986ac22e7e>
- patch: <https://git.kernel.org/stable/c/8a95fb9df1105b1618872c2846a6c01e3ba20b45>
- patch: <https://git.kernel.org/stable/c/d2c31d8e03d05edc16656e5ffe187f0d1da763d7>
- patch: <https://git.kernel.org/stable/c/75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2>
- patch: <https://git.kernel.org/stable/c/ca831567908fd3f73cf97d8a6c09a5054697a182>
- patch: <https://git.kernel.org/stable/c/b7bf516c3ecd9a2aae2dc2635178ab87b734fef1>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23359>

HTML: <https://flawdb.com/CVE-2026-23359> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23359>
