CVE-2026-97420
Description
A flaw was found in the Linux kernel's BPF (Berkeley Packet Filter) subsystem. When a BPF program modifies a system control (sysctl) parameter, the kernel fails to append a null-terminating byte to the replacement buffer. Downstream kernel parsers expecting a properly terminated string may read past the buffer boundary, resulting in an out-of-bounds memory access. A local user could exploit this flaw to cause a Denial of Service (DoS) through a system crash or potentially access sensitive kernel memory.
Statement
A moderate-impact flaw was found in the Linux kernel's BPF (Berkeley Packet Filter) subsystem in kernel/bpf/cgroup.c, affecting Red Hat Enterprise Linux kernel packages (kernel, kernel-rt) and other affected Red Hat kernel-based offerings recorded on this flaw. When a cgroup sysctl BPF program calls the bpf_sysctl_set_new_value() helper to replace a pending sysctl value, the helper copies only the replacement buffer length without appending a terminating NUL byte. Sysctl proc handlers and their downstream string parsers expect a NUL-terminated buffer and may read past the end of the allocated page or slab, resulting in an out-of-bounds read (observed as a KASAN slab-out-of-bounds read in strnchrnul via bitmap_parse and flow_limit_cpu_sysctl). A local user with the privileges required to write to sysctl entries and load and attach cgroup sysctl BPF programs could exploit this flaw to crash the kernel, causing a denial of service; in the worst case an out-of-bounds read could expose kernel memory, although no information disclosure or write primitive is demonstrated. The flaw is rated Moderate severity (CVSS 5.5, AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) because exploitation requires local, privileged access and the primary consequence is loss of availability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.5 | N/A | N/A |
| Attack Vector | Local | N/A | N/A |
| Attack Complexity | Low | N/A | N/A |
| Privileges Required | Low | N/A | N/A |
| User Interaction | None | N/A | N/A |
| Scope | Unchanged | N/A | N/A |
| Confidentiality | None | N/A | N/A |
| Integrity Impact | None | N/A | N/A |
| Availability Impact | High | N/A | N/A |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Memory
An attacker could get secret values such as cryptographic keys, PII, memory addresses, or other information that could be used in additional attacks.
Confidentiality
Technical Impact: Bypass Protection Mechanism
Out-of-bounds memory could contain memory addresses or other information that can be used to bypass ASLR and other protection mechanisms in order to improve the reliability of exploiting a separate weakness for code execution.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
An attacker could cause a segmentation fault or crash by causing memory to be read outside of the bounds of the buffer. This is especially likely when the code reads a variable amount of data and assumes that a sentinel exists to stop the read operation, such as a NUL in a string.
Other
Technical Impact: Varies by Context
The read operation could produce other undefined or unexpected results.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.