# CVE-2026-98150: bpf: Fix BPF\_F\_CPU validation for sparse CPU IDs

- Priority: **Routine**
- Reason: Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-25 · Modified: 2026-10-19
- Aliases: UBUNTU-CVE-2026-98150, DEBIAN-CVE-2026-98150
- Record: https://cvemate.com/vulnerability/CVE-2026-98150 · JSON: https://cvemate.com/vulnerability/CVE-2026-98150/json

## Description

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

bpf: Fix BPF_F_CPU validation for sparse CPU IDs

BPF_F_CPU stores the target CPU ID in the upper 32 bits of the map
operation flags. bpf_map_check_op_flags() currently compares that ID
with num_possible_cpus(), which is the number of possible CPUs rather
than a bound on CPU IDs.

On an arm64 QEMU guest with a CPU device-tree hole, the possible CPU
mask was 0,2-3. A userspace program using raw bpf() syscalls creates
a BPF_MAP_TYPE_PERCPU_ARRAY and performs update and lookup operations
for each CPU by setting BPF_F_CPU and the CPU ID in the flags.

With the old check, CPU 1 is incorrectly accepted while valid CPU 3 is
rejected with -ERANGE. The CPU 1 update then reaches the per-CPU map
access path and triggers:

  Unable to handle kernel paging request at virtual address ...
  pc : __pi_memcpy_generic+0x5c/0x22c
  lr : bpf_percpu_array_update+0x2dc/0x2e8
  Call trace:
    __pi_memcpy_generic
    bpf_map_update_value
    map_update_elem
    __sys_bpf

Check the CPU ID against nr_cpu_ids and cpu_possible() instead. This
rejects CPU IDs outside the valid range and CPUs absent from the
possible mask, while allowing valid sparse CPU IDs.
```

## Signals

- CVSS: 7 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.101%, percentile 0.935%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 122)

- debian linux (Debian): \< 7.2.7-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-42.42
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-1016.17
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-7.0 (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-1017.18~24.04.1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-1020.21
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/bdc5941f6eeef90b76a07fd8ca38ac1933ba2195>
- <https://git.kernel.org/stable/c/ed54bf564ac52699cf4def3d0c2125d493e756f9>
- <https://ubuntu.com/security/CVE-2026-98150>
- <https://www.cve.org/CVERecord?id=CVE-2026-98150>
- <https://security-tracker.debian.org/tracker/CVE-2026-98150>
- <https://ubuntu.com/security/notices/USN-8959-1>
- <https://ubuntu.com/security/notices/USN-8960-1>
- <https://ubuntu.com/security/notices/USN-9020-1>
- <https://ubuntu.com/security/notices/USN-9019-1>
- <https://ubuntu.com/security/notices/USN-9021-1>
- <https://ubuntu.com/security/notices/USN-9160-1>

---

Data as of 2026-12-05T03:00:16.027Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
