CVE-2026-98150·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.2.7
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.10% — in the bottom 1% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-98150 scores 7 on CVSS, so a successful attack would be serious — but at 0.10%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 7.0
Until: 7.2.7
Fixed in: 7.2.7
How to fix this CVE
Update your Linux kernel to version 7.2.7 or later to resolve this CPU ID validation flaw in BPF map operations. Systems using BPF_MAP_TYPE_PERCPU_ARRAY with sparse CPU configurations are particularly at risk and should prioritize this update. The fix corrects improper CPU ID boundary checking that could cause kernel panic or memory corruption when invalid CPUs are referenced.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check kernel version with `uname -r` and verify it is 7.2.7 or later
- Step 2: Identify if BPF programs are loaded using `bpftool prog list` or check `/proc/sys/kernel/unprivileged_bpf_disabled`
- Step 3: Search kernel logs for BPF-related panics with `dmesg | grep -i 'bpf\|percpu\|memcpy'` or `journalctl -k | grep -i bpf`
- Step 4: Verify the kernel module containing the fix is active by checking `/boot/config-$(uname -r)` for `CONFIG_BPF_SYSCALL=y` and confirm no errors appear during BPF map operations in `dmesg`
FAQ
What is CVE-2026-98150?
This vulnerability affects Linux kernel BPF subsystem where CPU ID validation for per-CPU array map operations incorrectly compares against the number of possible CPUs rather than the maximum CPU ID, causing crashes or memory corruption on systems with sparse CPU configurations (e.g., CPU holes in device-tree).
Is CVE-2026-98150 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and has no public exploit code available. However, it can be triggered by local unprivileged users with BPF capabilities.
What versions of Kernel are affected by CVE-2026-98150?
Linux kernel versions 7.0 through 7.2.6 are affected. Version 7.2.7 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-98150?
Run `uname -r` to display your kernel version. If it is 7.0.x, 7.1.x, or 7.2.0 through 7.2.6, your system is vulnerable. Additionally, check if BPF is enabled with `cat /proc/sys/kernel/unprivileged_bpf_disabled` (value 0 or 1 means BPF is enabled).
Does Defensia detect CVE-2026-98150?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2026-98150 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98150. Free for 1 server.
Get started free