CVE Database›CVE-2022-50315

CVE-2022-50315

kernel: ata: ahci: Match EM_MAX_SLOTS with SATA_PMP_MAX_PORTS

Loading…

Severity

Moderate

Red Hat Product Security

4.5

CVSS 3.1

Review impact separately from score.

Published · September 15, 2025

Updated · October 31, 2026

Description

A flaw was discovered in the Linux kernel’s AHCI driver subsystem.The driver allocated an array of 8 elements (ahci_em_priv[8]), but under certain SATA Port Multiplier (PMP) configurations, the code in sata_pmp_init_links() could index up to SATA_PMP_MAX_PORTS (which may exceed 8), triggering a potential array-index-out-of-bounds condition. This could result in memory corruption and compromise of system integrity or availability.

Statement

This vulnerability is rated as Moderate severity rather than Low because successful exploitation can cause memory corruption leading to a kernel crash and denial of service. The issue requires specific hardware configurations involving SATA Port Multipliers connected to an AHCI host controller with enclosure management active. On typical enterprise installations where standard direct-attached storage or NVMe drives are utilized without port multipliers, this flawed code path is not exercised.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

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

CWE-805 · Buffer Access with Incorrect Length Value