CVE-2022-50168

Description

A flaw was found in the Linux kernel's extended Berkeley Packet Filter (eBPF) subsystem. When compiling programs containing multiple subprograms, an error during Just-In-Time (JIT) compilation can cause the kernel to prematurely and improperly deallocate memory pages. A local user with permissions to load eBPF programs could exploit this flaw to corrupt kernel memory, leading to a system crash and denial of service (DoS).

Statement

This vulnerability is rated as Moderate impact for Red Hat Enterprise Linux because exploitation requires local access with elevated privileges to load extended Berkeley Packet Filter (eBPF) programs containing multiple subprograms, and the resulting blast radius is limited to a system crash. On typical Red Hat deployments, unprivileged eBPF execution is restricted by default, meaning an attacker must already hold administrative privileges such as CAP_BPF or CAP_SYS_ADMIN to interact with the JIT compilation subsystem. Although improper memory deallocation during compilation failure can destabilize kernel memory, it cannot be leveraged directly by unprivileged local users or remotely across the network.

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 Score5.57.87.8
Attack VectorLocalLocalLocal
Attack ComplexityLowLowLow
Privileges RequiredLowLowLow
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityNoneHighHigh
Integrity ImpactNoneHighHigh
Availability ImpactHighHighHigh

Vector

Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/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:H/I:H/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,Availability,Confidentiality

Technical Impact: Modify Memory; DoS: Crash, Exit, or Restart; Execute Unauthorized Code or Commands

This weakness may result in the corruption of memory, and perhaps instructions, possibly leading to a crash. If the corrupted memory can be effectively controlled, it may be possible to execute arbitrary code.

Frequently Asked Questions

Want to get errata notifications? Sign up here.