CVE-2026-98376

Source
https://cve.org/CVERecord?id=CVE-2026-98376
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98376.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98376
Downstream
Published
2026-10-09T07:34:17Z
Modified
2026-10-11T02:47:08Z
Summary
bpf: Use array_map_meta_equal for percpu array inner map replacement
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Use array_map_meta_equal for percpu array inner map replacement

percpu_array_map_ops.map_meta_equal points to the generic bpf_map_meta_equal(), which does not compare max_entries. When a percpu array serves as an inner map, replacing it with one that has fewer max_entries bypasses the check. Since percpu_array_map_gen_lookup() inlines the original template's index_mask as a JIT immediate, a lookup on the replacement map can access pptrs[] out of bounds.

Point percpu_array_map_ops.map_meta_equal to array_map_meta_equal(), which already enforces the max_entries equality check.

Add a selftest to verify that replacing a percpu array inner map with a differently-sized one is rejected.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98376.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
db69718b8efac802c7cc20d5a6c7dfc913f99c43
Fixed
593980175389a05793f6060aa20e626330960395

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98376.json"