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.
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Out-of-bounds memory read leading to potential memory corruption
Action: Patch kernel
AI Analysis

Impact

A flaw in the Linux kernel’s BPF module miscalculates the offset for per‑CPU array, hash, and cgroup storage map updates when the system’s CPU mask is sparse. The code assumes logically contiguous CPU IDs starting at zero, but with non‑contiguous IDs the computed offset skips valid slots, causing out‑of‑bounds reads and corrupt per‑CPU values. This bug allows a local user who can load malicious BPF programs to read or corrupt kernel memory, potentially leading to privilege escalation. Based on the description, it is inferred that an attacker can exploit the flaw by running a BPF program with otherwise normal user privileges.

Affected Systems

All Linux kernel releases that precede the fix. Every distribution shipping an unpatched kernel is affected, regardless of vendor. The vulnerability applies to systems where the possible CPU mask is non‑contiguous, such as a CPU mask of 0,2-3.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, while the EPSS score of <1% suggests a very low likelihood of exploitation. The vulnerability does not require elevated kernel privileges to be triggered; it relies on a local user’s ability to load BPF programs. Because it results in out‑of‑bounds memory access, the potential impact is moderate. The vulnerability is not listed in the CISA KEV catalog, so no widespread exploitation has been reported.

Generated by OpenCVE AI on September 30, 2026 at 09:06 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that includes the changes in commits 75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7 and c16c62c91e5d6737a9fbb0a541b8b34610470a2b, or apply a patch containing those commits to the running kernel source and rebuild.
  • Reboot or reload affected services after the patch to activate the updated kernel code and eliminate the risk.
  • If a patch or newer kernel version is not immediately available, restrict or monitor the loading of non‑privileged BPF programs to mitigate potential exploitation while awaiting an official update.

Generated by OpenCVE AI on September 30, 2026 at 09:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 10:45:00 +0000

Type Values Removed Values Added
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.
Title bpf: Fix percpu map update indexing with sparse CPU IDs
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-25T10:36:22.182Z

Reserved: 2026-09-25T10:25:14.320Z

Link: CVE-2026-98149

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-25T11:17:46.473

Modified: 2026-09-30T14:10:59.253

Link: CVE-2026-98149

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98149 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T09:15:14Z

Weaknesses