# CVE-2026-98149: bpf: Fix percpu map update indexing with sparse CPU IDs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 5, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-09-25T10:36:22.182Z
- **Modified:** 2026-10-21T20:36:19.900Z

## Who should check

- Anyone running Linux \>= 8eb76cb03f0f6c2bd7b15cf45dcffcd6bd07a360, \< c16c62c91e5d6737a9fbb0a541b8b34610470a2b; \>= 8eb76cb03f0f6c2bd7b15cf45dcffcd6bd07a360, \< 75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7
- Anyone running Linux 7.0

## Description

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

bpf: Fix percpu map update indexing with sparse CPU IDs

Per-CPU array, hash, and cgroup storage map updates without BPF\_F\_CPU
or BPF\_F\_ALL\_CPUS use a value buffer whose per-CPU slots are packed in
possible-CPU order. The buffer is sized as:

  round\_up(value\_size, 8) \* num\_possible\_cpus()

The update paths iterate over possible CPUs, but use the logical CPU ID
to calculate the source offset:

  value + size \* cpu

This only works when possible CPU IDs are contiguous starting at zero.

For example, with a possible CPU mask of 0,2-3, the buffer contains
three slots corresponding to CPUs 0, 2, and 3. CPU2 is therefore
expected to use slot 1 and CPU3 slot 2. Instead, the current code uses
slots 2 and 3 respectively, causing incorrect per-CPU values and an
out-of-bounds read from the update buffer for CPU3.

The corresponding lookup paths already use a dense offset while
iterating over possible CPUs. Do the same for the array, hash, and
cgroup storage update paths, advancing the source offset once for each
possible CPU. BPF\_F\_ALL\_CPUS continues to use the same value for every
CPU.

## Affected and fixed versions

- Linux: \>= 8eb76cb03f0f6c2bd7b15cf45dcffcd6bd07a360, \< c16c62c91e5d6737a9fbb0a541b8b34610470a2b; \>= 8eb76cb03f0f6c2bd7b15cf45dcffcd6bd07a360, \< 75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7 (cvelist)
- Linux: 7.0 (cvelist)

## Mitigation

- Upgrade Linux to 75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98149. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98149.md
Affected: Linux >= 8eb76cb03f0f6c2bd7b15cf45dcffcd6bd07a360, < c16c62c91e5d6737a9fbb0a541b8b34610470a2b; >= 8eb76cb03f0f6c2bd7b15cf45dcffcd6bd07a360, < 75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7; Linux 7.0
Fixed in: Linux 75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98149 being exploited?

There is no confirmed exploitation: CVE-2026-98149 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98149?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-98149?

Linux \>= 8eb76cb03f0f6c2bd7b15cf45dcffcd6bd07a360, \< c16c62c91e5d6737a9fbb0a541b8b34610470a2b; \>= 8eb76cb03f0f6c2bd7b15cf45dcffcd6bd07a360, \< 75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7; Linux 7.0.

### Is there a fix for CVE-2026-98149?

Yes. Fixed in Linux 75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7. Upgrade Linux to 75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7 or later.

### How do I check if I'm affected by CVE-2026-98149?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c16c62c91e5d6737a9fbb0a541b8b34610470a2b>
- patch: <https://git.kernel.org/stable/c/75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98149>

HTML: <https://flawdb.com/CVE-2026-98149> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98149>
