CVE-2026-23359
published 2026-03-25CVE-2026-23359: 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…
PriorityP344high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.13%
3.1th percentile
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
30 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.19.8-1 (forky) | linux 6.19.8-1 (forky) |
| linux | linux | — | — |
| linux | linux | >= aeea1b86f9363f3feabb496534d886f082a89f21 < 88df604f0d16a692867582350ce3f2fcd22243f1 | 88df604f0d16a692867582350ce3f2fcd22243f1 |
| linux | linux | >= aeea1b86f9363f3feabb496534d886f082a89f21 < 5000e40acc8d0c36ab709662e32120986ac22e7e | 5000e40acc8d0c36ab709662e32120986ac22e7e |
| linux | linux | >= aeea1b86f9363f3feabb496534d886f082a89f21 < 8a95fb9df1105b1618872c2846a6c01e3ba20b45 | 8a95fb9df1105b1618872c2846a6c01e3ba20b45 |
| linux | linux | >= aeea1b86f9363f3feabb496534d886f082a89f21 < d2c31d8e03d05edc16656e5ffe187f0d1da763d7 | d2c31d8e03d05edc16656e5ffe187f0d1da763d7 |
| linux | linux | >= aeea1b86f9363f3feabb496534d886f082a89f21 < 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2 | 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2 |
| linux | linux | >= aeea1b86f9363f3feabb496534d886f082a89f21 < ca831567908fd3f73cf97d8a6c09a5054697a182 | ca831567908fd3f73cf97d8a6c09a5054697a182 |
| linux | linux | >= aeea1b86f9363f3feabb496534d886f082a89f21 < b7bf516c3ecd9a2aae2dc2635178ab87b734fef1 | b7bf516c3ecd9a2aae2dc2635178ab87b734fef1 |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | >= 0 < 6.19.8-1 | 6.19.8-1 |
| linux | linux_kernel | >= 5.15.0 < 6.1.167 | 6.1.167 |
| linux | linux_kernel | >= 5.15.1 < 5.15.203 | 5.15.203 |
| linux | linux_kernel | >= 5.16 < 6.1.167 | 6.1.167 |
| linux | linux_kernel | >= 6.13 < 6.18.17 | 6.18.17 |
| linux | linux_kernel | >= 6.13.0 < 6.18.17 | 6.18.17 |
| linux | linux_kernel | >= 6.19 < 6.19.7 | 6.19.7 |
| linux | linux_kernel | >= 6.19.0 < 6.19.7 | 6.19.7 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vendor_msrc8.8HIGH
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
kernel: bpf: Fix stack-out-of-bounds write in devmap
vendor_redhat·2026-03-25·CVSS 5.5
CVE-2026-23359 [MEDIUM] CWE-787 kernel: bpf: Fix stack-out-of-bounds write in devmap
kernel: bpf: Fix stack-out-of-bounds write in devmap
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 wit
Microsoft
bpf: Fix stack-out-of-bounds write in devmap
vendor_msrc·2026-03-10·CVSS 8.8
CVE-2026-23359 [HIGH] bpf: Fix stack-out-of-bounds write in devmap
bpf: Fix stack-out-of-bounds write in devmap
Mariner: Mariner
Linux: Linux
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft.com/en-us/azure/azure-linux/tutorial-azure-linux-upgrade
Debian
CVE-2026-23359: linux - In the Linux kernel, the following vulnerability has been resolved: bpf: Fix st...
vendor_debian·2026
CVE-2026-23359 CVE-2026-23359: linux - In the Linux kernel, the following vulnerability has been resolved: bpf: Fix st...
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_
OSV
CVE-2026-23359: In the Linux kernel, the following vulnerability has been resolved: bpf: Fix stack-out-of-bounds write in devmap get_upper_ifindexes() iterates over a
osv·2026-03-25
CVE-2026-23359 CVE-2026-23359: In the Linux kernel, the following vulnerability has been resolved: bpf: Fix stack-out-of-bounds write in devmap get_upper_ifindexes() iterates over a
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_
GHSA
GHSA-5m94-46x3-f942: In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix stack-out-of-bounds write in devmap
get_upper_ifindexes() iterates over
ghsa_unreviewed·2026-03-25
CVE-2026-23359 GHSA-5m94-46x3-f942: In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix stack-out-of-bounds write in devmap
get_upper_ifindexes() iterates over
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 |
OSV
bpf: Fix stack-out-of-bounds write in devmap
osv·2026-03-25
CVE-2026-23359 bpf: Fix stack-out-of-bounds write in devmap
bpf: Fix stack-out-of-bounds write in devmap
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
a
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-23359 kernel: bpf: Fix stack-out-of-bounds write in devmap
bugzilla·2026-03-25·CVSS 7.8
CVE-2026-23359 [HIGH] CVE-2026-23359 kernel: bpf: Fix stack-out-of-bounds write in devmap
CVE-2026-23359 kernel: bpf: Fix stack-out-of-bounds write in devmap
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) macv
Wiz
CVE-2026-23359 Impact, Exploitability, and Mitigation Steps | Wiz
blogs_wiz
CVE-2026-23359 CVE-2026-23359 Impact, Exploitability, and Mitigation Steps | Wiz
## CVE-2026-23359 :
Linux Kernel vulnerability analysis and mitigation
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)
https://git.kernel.org/stable/c/5000e40acc8d0c36ab709662e32120986ac22e7ehttps://git.kernel.org/stable/c/75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2https://git.kernel.org/stable/c/88df604f0d16a692867582350ce3f2fcd22243f1https://git.kernel.org/stable/c/8a95fb9df1105b1618872c2846a6c01e3ba20b45https://git.kernel.org/stable/c/b7bf516c3ecd9a2aae2dc2635178ab87b734fef1https://git.kernel.org/stable/c/ca831567908fd3f73cf97d8a6c09a5054697a182https://git.kernel.org/stable/c/d2c31d8e03d05edc16656e5ffe187f0d1da763d7https://cert-portal.siemens.com/productcert/html/ssa-019113.htmlhttps://cert-portal.siemens.com/productcert/html/ssa-082556.html
2026-03-25
Published