{"api_version":"1","generated_at":"2026-04-19T01:15:04+00:00","cve":"CVE-2026-23359","urls":{"html":"https://cve.report/CVE-2026-23359","api":"https://cve.report/api/cve/CVE-2026-23359.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-23359","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-23359"},"summary":{"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 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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-03-25 11:16:34","updated_at":"2026-04-18 09:16:21"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/b7bf516c3ecd9a2aae2dc2635178ab87b734fef1","name":"https://git.kernel.org/stable/c/b7bf516c3ecd9a2aae2dc2635178ab87b734fef1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/88df604f0d16a692867582350ce3f2fcd22243f1","name":"https://git.kernel.org/stable/c/88df604f0d16a692867582350ce3f2fcd22243f1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d2c31d8e03d05edc16656e5ffe187f0d1da763d7","name":"https://git.kernel.org/stable/c/d2c31d8e03d05edc16656e5ffe187f0d1da763d7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8a95fb9df1105b1618872c2846a6c01e3ba20b45","name":"https://git.kernel.org/stable/c/8a95fb9df1105b1618872c2846a6c01e3ba20b45","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ca831567908fd3f73cf97d8a6c09a5054697a182","name":"https://git.kernel.org/stable/c/ca831567908fd3f73cf97d8a6c09a5054697a182","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5000e40acc8d0c36ab709662e32120986ac22e7e","name":"https://git.kernel.org/stable/c/5000e40acc8d0c36ab709662e32120986ac22e7e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2","name":"https://git.kernel.org/stable/c/75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-23359","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23359","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected aeea1b86f9363f3feabb496534d886f082a89f21 88df604f0d16a692867582350ce3f2fcd22243f1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected aeea1b86f9363f3feabb496534d886f082a89f21 5000e40acc8d0c36ab709662e32120986ac22e7e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected aeea1b86f9363f3feabb496534d886f082a89f21 8a95fb9df1105b1618872c2846a6c01e3ba20b45 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected aeea1b86f9363f3feabb496534d886f082a89f21 d2c31d8e03d05edc16656e5ffe187f0d1da763d7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected aeea1b86f9363f3feabb496534d886f082a89f21 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected aeea1b86f9363f3feabb496534d886f082a89f21 ca831567908fd3f73cf97d8a6c09a5054697a182 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected aeea1b86f9363f3feabb496534d886f082a89f21 b7bf516c3ecd9a2aae2dc2635178ab87b734fef1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.203 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.167 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.130 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.77 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.17 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19.7 6.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"23359","cve":"CVE-2026-23359","epss":"0.000320000","percentile":"0.090980000","score_date":"2026-04-18","updated_at":"2026-04-19 00:10:43"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/bpf/devmap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"88df604f0d16a692867582350ce3f2fcd22243f1","status":"affected","version":"aeea1b86f9363f3feabb496534d886f082a89f21","versionType":"git"},{"lessThan":"5000e40acc8d0c36ab709662e32120986ac22e7e","status":"affected","version":"aeea1b86f9363f3feabb496534d886f082a89f21","versionType":"git"},{"lessThan":"8a95fb9df1105b1618872c2846a6c01e3ba20b45","status":"affected","version":"aeea1b86f9363f3feabb496534d886f082a89f21","versionType":"git"},{"lessThan":"d2c31d8e03d05edc16656e5ffe187f0d1da763d7","status":"affected","version":"aeea1b86f9363f3feabb496534d886f082a89f21","versionType":"git"},{"lessThan":"75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2","status":"affected","version":"aeea1b86f9363f3feabb496534d886f082a89f21","versionType":"git"},{"lessThan":"ca831567908fd3f73cf97d8a6c09a5054697a182","status":"affected","version":"aeea1b86f9363f3feabb496534d886f082a89f21","versionType":"git"},{"lessThan":"b7bf516c3ecd9a2aae2dc2635178ab87b734fef1","status":"affected","version":"aeea1b86f9363f3feabb496534d886f082a89f21","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/bpf/devmap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.15"},{"lessThan":"5.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.203","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.167","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.130","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.77","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.17","versionType":"semver"},{"lessThanOrEqual":"6.19.*","status":"unaffected","version":"6.19.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.0","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.203","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.167","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.130","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.77","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.17","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.19.7","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0","versionStartIncluding":"5.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-04-18T08:58:10.801Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/88df604f0d16a692867582350ce3f2fcd22243f1"},{"url":"https://git.kernel.org/stable/c/5000e40acc8d0c36ab709662e32120986ac22e7e"},{"url":"https://git.kernel.org/stable/c/8a95fb9df1105b1618872c2846a6c01e3ba20b45"},{"url":"https://git.kernel.org/stable/c/d2c31d8e03d05edc16656e5ffe187f0d1da763d7"},{"url":"https://git.kernel.org/stable/c/75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2"},{"url":"https://git.kernel.org/stable/c/ca831567908fd3f73cf97d8a6c09a5054697a182"},{"url":"https://git.kernel.org/stable/c/b7bf516c3ecd9a2aae2dc2635178ab87b734fef1"}],"title":"bpf: Fix stack-out-of-bounds write in devmap","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-23359","datePublished":"2026-03-25T10:27:43.070Z","dateReserved":"2026-01-13T15:37:46.000Z","dateUpdated":"2026-04-18T08:58:10.801Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-03-25 11:16:34","lastModifiedDate":"2026-04-18 09:16:21","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"23359","Ordinal":"1","Title":"bpf: Fix stack-out-of-bounds write in devmap","CVE":"CVE-2026-23359","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"23359","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"bpf: Fix stack-out-of-bounds write in devmap"}]}}}