# CVE-2026-98376: bpf: Use array_map_meta_equal for percpu array inner map replacement

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-10-09T07:34:17.043Z
- Modified: 2026-10-24T14:16:39.733Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from db69718b8efac802c7cc20d5a6c7dfc913f99c43 before 593980175389a05793f6060aa20e626330960395; 6.10 (not affected: before 6.10; from 7.1 up to *)

## References

- <https://git.kernel.org/stable/c/593980175389a05793f6060aa20e626330960395>

## Sources

- CVE List: [CVE-2026-98376](https://www.cve.org/CVERecord?id=CVE-2026-98376), CVE Terms of Use, modified 2026-10-24
- NVD: [CVE-2026-98376](https://nvd.nist.gov/vuln/detail/CVE-2026-98376), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-98376 · Whole record: https://cve.day/CVE-2026-98376.json · Rebuilt by cve.day 2026-11-25T22:59:43.279Z
