CVE-2022-49985

Description

A flaw was found in the Linux kernel's extended Berkeley Packet Filter (eBPF) subsystem. Imprecise range checking in the eBPF verifier allows an authorized local user with privileges to load eBPF programs to trigger an out-of-bounds memory read during Just-In-Time (JIT) compilation. This vulnerability can lead to a system crash resulting in a Denial of Service (DoS) or potential exposure of sensitive kernel memory.

Statement

This vulnerability is rated as having a Moderate impact for Red Hat Enterprise Linux because exploitation requires local access and elevated capabilities to load eBPF programs. In default Red Hat Enterprise Linux environments, unprivileged access to the eBPF subsystem is disabled, significantly reducing the attack surface. While an imprecise bounds check in the verifier poke descriptor logic can lead to out-of-bounds memory operations during JIT compilation, triggering the issue requires administrative privileges such as CAP_BPF or CAP_SYS_ADMIN.

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).

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score77.17.8
Attack VectorLocalLocalLocal
Attack ComplexityHighLowLow
Privileges RequiredLowLowLow
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityHighHighHigh
Integrity ImpactHighNoneHigh
Availability ImpactHighHighHigh

Vector

Red Hat: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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)

Integrity

Technical Impact: Modify Memory; Execute Unauthorized Code or Commands

Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.

Other

Technical Impact: Unexpected State

Subsequent write operations can produce undefined or unexpected results.

Frequently Asked Questions

Want to get errata notifications? Sign up here.