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

cgroup/rstat: validate cpu before css_rstat_cpu() access

css_rstat_updated() is exposed as a BPF kfunc and accepts a
caller-provided cpu argument. The function uses cpu for per-cpu rstat
lookups without checking whether it refers to a valid possible CPU.

A BPF iter/cgroup program with CAP_BPF and CAP_PERFMON can pass an
invalid cpu value. On an unfixed UBSCAN_BOUNDS test kernel, cpu ==
0x7fffffff triggers:

UBSAN: array-index-out-of-bounds in kernel/cgroup/rstat.c:31:9
index 2147483647 is out of range for type 'long unsigned int [64]'
Call Trace:
css_rstat_updated
bpf_iter_run_prog
cgroup_iter_seq_show
bpf_seq_read

Add cpu validation to the BPF-facing css_rstat_updated() kfunc and
move the common implementation to __css_rstat_updated() for in-kernel
callers.
Published: 2026-07-19
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel has an exposed BPF helper function named css_rstat_updated that accepts a caller‑provided CPU index without first validating that it corresponds to a real CPU core. When a BPF iterator or cgroup program supplies an out‑of‑range value such as 0x7FFFFFFF, the helper performs an out‑of‑bounds array lookup on the per‑CPU rstat structure. The kernel’s UBSAN detects the array‑index violation and forces a crash, resulting in a denial of service. This flaw is characterized by out‑of‑bounds array access (CWE-787).

Affected Systems

Affected systems are any Linux kernel that implements the css_rstat_updated helper and allows BPF iterator or cgroup programs to run. It can be inferred from the absence of explicit kernel versions in the CVE that all unpatched kernels exposing this helper are susceptible. The vulnerability is only exploitable in environments where a user has the CAP_BPF and CAP_PERFMON capabilities, which are required.

Risk and Exploitability

The CVSS score of 7.8 classifies the flaw as high severity. The EPSS score of < 1% indicates a low probability of exploitation. An attacker with CAP_BPF and CAP_PERFMON can supply a malicious BPF program that triggers an out‑of‑bounds array lookup, causing the kernel to crash and forcing a reboot, which results in a denial of service for the affected host.

Generated by OpenCVE AI on August 4, 2026 at 06:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that includes CPU boundary checking in css_rstat_updated.
  • Remove or restrict the CAP_BPF from non‑trusted users to prevent the loading of malicious BPF programs.
  • If an immediate kernel upgrade is not possible, disable BPF iterator and cgroup functionality via kernel configuration or sysctl to eliminate the attack surface.

Generated by OpenCVE AI on August 4, 2026 at 06:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Sun, 26 Jul 2026 08:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-129
CWE-190

Tue, 21 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-129
CWE-190

Tue, 21 Jul 2026 12:15:00 +0000

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

None

threat_severity

Moderate


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Sun, 19 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cgroup/rstat: validate cpu before css_rstat_cpu() access css_rstat_updated() is exposed as a BPF kfunc and accepts a caller-provided cpu argument. The function uses cpu for per-cpu rstat lookups without checking whether it refers to a valid possible CPU. A BPF iter/cgroup program with CAP_BPF and CAP_PERFMON can pass an invalid cpu value. On an unfixed UBSCAN_BOUNDS test kernel, cpu == 0x7fffffff triggers: UBSAN: array-index-out-of-bounds in kernel/cgroup/rstat.c:31:9 index 2147483647 is out of range for type 'long unsigned int [64]' Call Trace: css_rstat_updated bpf_iter_run_prog cgroup_iter_seq_show bpf_seq_read Add cpu validation to the BPF-facing css_rstat_updated() kfunc and move the common implementation to __css_rstat_updated() for in-kernel callers.
Title cgroup/rstat: validate cpu before css_rstat_cpu() access
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-08-05T12:38:30.669Z

Reserved: 2026-07-19T07:54:57.028Z

Link: CVE-2026-64036

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-64036 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T06:15:04Z

Weaknesses