CVE-2022-50248

Description

A flaw was found in the Linux kernel's Intel Wi-Fi driver (iwlwifi). A local attacker can exploit this issue by transmitting network traffic over an affected wireless interface, triggering an error path during packet transmission. This flaw leads to a double-free memory error, potentially resulting in a kernel crash and Denial of Service (DoS) or privilege escalation.

Statement

Impact: Double-free in iwlwifi mvm TX error path (TSO) can lead to use-after-free and kernel crash. Privilege escalation cannot be ruled out. Affected only when the Intel iwlwifi/mvm driver is in use (e.g., AX210) and only by local user who sends traffic using WiFi. An unprivileged user can trigger by sending traffic over the affected Wi-Fi interface. Reliable exploitation is non-trivial since it relies on a rare error path. Fixed in Red Hat Enterprise Linux 8 and in 9 starting from 9.3.

Mitigation: Update to a kernel including the fix. As a temporary mitigation, avoid using the affected adapter/driver; reducing large-segment TX (TSO/GSO) may lower likelihood, but wireless often doesn’t expose these offloads.

Mitigation

To mitigate this issue, prevent module iwlwifi from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.

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 HatNVDcve.org
Base Score6.57.87.8
Attack VectorLocalLocalLocal
Attack ComplexityHighLowLow
Privileges RequiredLowLowLow
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityLowHighHigh
Integrity ImpactHighHighHigh
Availability ImpactHighHighHigh

Vector

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

Technical Impact: Modify Memory; Execute Unauthorized Code or Commands

When a program calls free() twice with the same argument, the program's memory management data structures may become corrupted, potentially leading to the reading or modification of unexpected memory addresses. This corruption can cause the program to crash or, in some circumstances, cause two later calls to malloc() to return the same pointer. If malloc() returns the same value twice and the program later gives the attacker control over the data that is written into this doubly-allocated memory, the program becomes vulnerable to a buffer overflow attack. Doubly freeing memory may result in a write-what-where condition, allowing an attacker to execute arbitrary code.

Frequently Asked Questions

Want to get errata notifications? Sign up here.