CVE-2022-50221

Description

A flaw was found in the Linux kernel's Direct Rendering Manager (DRM) framebuffer emulation component. When processing deferred display updates, the damage handler calculates update regions across entire memory pages rather than the exact bounds of the screen buffer. A local user with access to the framebuffer device can exploit this flaw to trigger an out-of-bounds memory write during screen refresh operations. This flaw can lead to kernel memory corruption or cause a system crash resulting in a Denial of Service (DoS).

Statement

This vulnerability is rated as Moderate severity because exploitation requires local access with permissions to interact with the framebuffer device, precluding remote vectors. The flaw resides in the DRM fbdev emulation layer when handling deferred I/O updates for display geometries that do not align with memory page boundaries, leading to an out-of-bounds write. In typical Red Hat Enterprise Linux environments, direct access to framebuffer devices is restricted to privileged accounts or local console sessions, significantly limiting exposure.

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.