{"id":"CVE-2026-98376","revision":"3745042f605c4c3cbd29e3afb51ee5d0","records":[{"revision":"3745042f605c4c3cbd29e3afb51ee5d0","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-98376","aliases":[],"title":"bpf: Use array_map_meta_equal for percpu array inner map replacement","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Use array_map_meta_equal for percpu array inner map replacement\n\npercpu_array_map_ops.map_meta_equal points to the generic\nbpf_map_meta_equal(), which does not compare max_entries.  When a\npercpu array serves as an inner map, replacing it with one that has\nfewer max_entries bypasses the check.  Since percpu_array_map_gen_lookup()\ninlines the original template's index_mask as a JIT immediate, a lookup\non the replacement map can access pptrs[] out of bounds.\n\nPoint percpu_array_map_ops.map_meta_equal to array_map_meta_equal(),\nwhich already enforces the max_entries equality check.\n\nAdd a selftest to verify that replacing a percpu array inner map with\na differently-sized one is rejected.","state":0,"publishedAt":"2026-10-09T07:34:17.043+00:00","modifiedAt":"2026-10-09T07:34:17.043+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"kernel/bpf/arraymap.c\",\n                        \"tools/testing/selftests/bpf/prog_tests/percpu_array_inner_map.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"db69718b8efac802c7cc20d5a6c7dfc913f99c43\",\n                            \"lessThan\": \"593980175389a05793f6060aa20e626330960395\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"kernel/bpf/arraymap.c\",\n                        \"tools/testing/selftests/bpf/prog_tests/percpu_array_inner_map.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.10\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.10\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.1\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/593980175389a05793f6060aa20e626330960395"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98376","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-98376","identifiers":["CVE-2026-98376"]},"retained":false,"historicalAffected":[]}],"coverage":[]}