{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-23359","id":"CVE-2026-23359","title":"bpf: Fix stack-out-of-bounds write in devmap","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix stack-out-of-bounds write in devmap\n\nget_upper_ifindexes() iterates over all upper devices and writes their\nindices into an array without checking bounds.\n\nAlso the callers assume that the max number of upper devices is\nMAX_NEST_DEV and allocate excluded_devices[1+MAX_NEST_DEV] on the stack,\nbut that assumption is not co","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix stack-out-of-bounds write in devmap\n\nget_upper_ifindexes() iterates over all upper devices and writes their\nindices into an array without checking bounds.\n\nAlso the callers assume that the max number of upper devices is\nMAX_NEST_DEV and allocate excluded_devices[1+MAX_NEST_DEV] on the stack,\nbut that assumption is not correct and the number of upper devices could\nbe larger than MAX_NEST_DEV (e.g., many macvlans), causing a\nstack-out-of-bounds write.\n\nAdd a max parameter to get_upper_ifindexes() to avoid the issue.\nWhen there are too many upper devices, return -EOVERFLOW and abort the\nredirect.\n\nTo reproduce, create more than MAX_NEST_DEV(8) macvlans on a device with\nan XDP program attached using BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS.\nThen send a packet to the device to trigger the XDP redirect path.","published":"2026-03-25T10:27:43.070Z","updated":"2026-11-12T02:30:48.934693131Z","reserved":"2026-01-13T15:37:46.000Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"aeea1b86f9363f3feabb496534d886f082a89f21","lessThan":"88df604f0d16a692867582350ce3f2fcd22243f1","status":"affected","versionType":"git"},{"version":"aeea1b86f9363f3feabb496534d886f082a89f21","lessThan":"5000e40acc8d0c36ab709662e32120986ac22e7e","status":"affected","versionType":"git"},{"version":"aeea1b86f9363f3feabb496534d886f082a89f21","lessThan":"8a95fb9df1105b1618872c2846a6c01e3ba20b45","status":"affected","versionType":"git"},{"version":"aeea1b86f9363f3feabb496534d886f082a89f21","lessThan":"d2c31d8e03d05edc16656e5ffe187f0d1da763d7","status":"affected","versionType":"git"},{"version":"aeea1b86f9363f3feabb496534d886f082a89f21","lessThan":"75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2","status":"affected","versionType":"git"},{"version":"aeea1b86f9363f3feabb496534d886f082a89f21","lessThan":"ca831567908fd3f73cf97d8a6c09a5054697a182","status":"affected","versionType":"git"},{"version":"aeea1b86f9363f3feabb496534d886f082a89f21","lessThan":"b7bf516c3ecd9a2aae2dc2635178ab87b734fef1","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","lessThan":"5.15","status":"unaffected","versionType":"semver"},{"version":"5.15.203","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.167","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.130","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.77","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.17","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.7","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-787"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/88df604f0d16a692867582350ce3f2fcd22243f1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5000e40acc8d0c36ab709662e32120986ac22e7e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8a95fb9df1105b1618872c2846a6c01e3ba20b45","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d2c31d8e03d05edc16656e5ffe187f0d1da763d7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ca831567908fd3f73cf97d8a6c09a5054697a182","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b7bf516c3ecd9a2aae2dc2635178ab87b734fef1","tags":["Patch","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23359.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23359","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00143,"epssPercentile":0.03737,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-23359","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23359","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-23359","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-23359","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}