CVE-2025-38060
Description
A flaw was found in the Linux kernel's BPF (Berkeley Packet Filter) verifier. The verifier, a security mechanism that checks BPF programs for safety, incorrectly handles certain program states. This oversight could allow a local attacker to bypass security checks, enabling the execution of unsafe code. Successful exploitation may lead to a denial of service or potentially privilege escalation within the system.
Statement
A flaw of MODERATE impact was found in the Linux kernel's BPF verifier in Red Hat Enterprise Linux 8, 9, and 10 (kernel and kernel-rt) and Red Hat In-Vehicle OS. The copy_verifier_state() function did not copy the bpf_verifier_state.loop_entry field, so loop_entry values from unrelated verifier states could poison env->cur_state, and states in env->stack could incorrectly retain a non-NULL loop_entry. As a result, the verifier could accept BPF programs that are not actually safe. A local attacker with the privileges needed to load BPF programs could exploit this flaw to bypass the verifier's safety checks and execute unsafe code, which could lead to a denial of service (kernel crash) or potentially privilege escalation. Red Hat Enterprise Linux 6 is not affected because the vulnerable code is not present in that release. Red Hat rates this flaw MODERATE (CVSS 4.4) rather than the upstream CVE record severity of 7.8 because successful exploitation requires high privileges to load BPF programs and the verified impact is primarily to system 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 | 4.4 | 5.5 | 7.8 |
| Attack Vector | Local | Local | Local |
| Attack Complexity | Low | Low | Low |
| Privileges Required | High | Low | Low |
| User Interaction | None | None | None |
| Scope | Unchanged | Unchanged | Unchanged |
| Confidentiality | None | None | High |
| Integrity Impact | None | None | High |
| Availability Impact | High | High | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Confidentiality,Integrity
Technical Impact: Read Application Data; Modify Application Data; Read Files or Directories; Modify Files or Directories
An attacker could gain access to or modify sensitive data or system resources. This could allow access to protected files or directories including configuration files and files containing sensitive information.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.