CVE-2022-50315
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50315 is an array index out-of-bounds vulnerability in the Linux kernel's AHCI (Advanced Host Controller Interface) driver, specifically in drivers/ata/libahci.c. The flaw arises from a mismatch between EM_MAX_SLOTS (defined as 8) and SATA_PMP_MAX_PORTS (up to 16), causing out-of-bounds access to the em_priv array when a SATA Port Multiplier with more than 8 ports is attached. It was publicly disclosed on September 15, 2025, and affects Linux kernel versions from 4.9 up to 6.1-rc1 across multiple stable branches. It carries a CVSS v3.1 base score of 7.8 (High) (Red Hat Advisory, Red Hat Bugzilla).

Technical details

The root cause is classified as CWE-129 (Improper Validation of Array Index). In libahci.c, the function ahci_qc_issue() accesses link->ap->em_priv[link->pmp], where link->pmp is initialized by sata_pmp_init_links() up to SATA_PMP_MAX_PORTS (15), but em_priv is declared as an array of only 8 elements (ahci_em_priv[8]). When a SATA Port Multiplier with more than 8 ports is connected, the index exceeds the array bounds, triggering a UBSAN out-of-bounds error. The fix aligns EM_MAX_SLOTS with SATA_PMP_MAX_PORTS to ensure the array is sized correctly. The AHCI spec v1.3.1 section 12.2.1 implies up to 16 ports can be addressed via 4-bit Port Multiplier Information fields, confirming the need for the larger array size (Red Hat Bugzilla).

Impact

Successful exploitation could allow a local attacker with low privileges to trigger kernel memory corruption via an out-of-bounds array access, potentially leading to kernel crashes (denial of service), information disclosure from adjacent kernel memory, or arbitrary code execution in kernel context. The CVSS v3.1 score reflects high impacts on confidentiality, integrity, and availability. The attack is limited to local access and requires the presence of a SATA Port Multiplier device with more than 8 ports (Red Hat Advisory, Red Hat Bugzilla).

Mitigation and workarounds

Patches are available for multiple Linux kernel stable branches. Fixed versions include: 4.9.332, 4.14.298, 4.19.264, 5.4.221, 5.10.152, 5.15.76, and 6.0.6. Upstream kernel commits are available via the stable kernel repository. If immediate patching is not possible, mitigations include restricting physical and local system access, limiting attachment of SATA Port Multiplier devices with more than 8 ports, and enabling kernel runtime protection mechanisms such as UBSAN or KASAN to detect and contain the issue. Upgrading to a patched kernel version is the recommended remediation (Red Hat Bugzilla, Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64192HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-oracle-5.4
NoYesJul 20, 2026
CVE-2026-64191HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-ibm
NoYesJul 20, 2026
CVE-2026-64600HIGH7.1
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-devel
NoYesJul 23, 2026
CVE-2026-64206MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-internal
NoYesJul 20, 2026
CVE-2026-64205MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-modules
NoNoJul 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management