CVE-2022-48919

Description

A flaw was found in the Linux kernel's Common Internet File System (CIFS) implementation. A local user with permissions to mount filesystems can trigger a race condition that leads to a double-free memory error when a mount operation fails. A successful exploit could allow an attacker to cause a system crash, resulting in a Denial of Service (DoS), or potentially escalate privileges through memory corruption.

Statement

This vulnerability is rated as Moderate severity rather than Important because exploitation requires local privileges to initiate mount operations and depends on winning a race condition during a mount failure. Under default configurations in Red Hat Enterprise Linux, invoking SMB/CIFS filesystem mounts requires administrative privileges (CAP_SYS_ADMIN), significantly limiting unprivileged exposure. While a successful exploit could lead to a kernel crash or privilege escalation through memory corruption, it cannot be executed remotely without an authorized user or service initiating the mount.

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.88.8
Attack VectorLocalLocalNetwork
Attack ComplexityHighLowLow
Privileges RequiredLowLowNone
User InteractionNoneNoneRequired
ScopeUnchangedUnchangedUnchanged
ConfidentialityHighHighHigh
Integrity ImpactHighHighHigh
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:H/A:H

cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Red Hat CVSS v3 Score Explanation

Attack Complexity (AC): High (H) Exploiting this might require specific timing or configuration (mounting with CIFS), making it relatively harder to exploit.

Privileges Required (PR): Low (L) Mount operations might require elevated privileges, but users with the ability to mount filesystems could exploit this.

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.