CVE-2025-40118
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability has been discovered in the Linux kernel related to an array-index-out-of-bounds issue in the SCSI pm80xx driver. The vulnerability was disclosed on November 12, 2025, and is tracked as CVE-2025-40118. The issue affects the Linux kernel's SCSI subsystem, specifically in the drivers/scsi/pm8001/pm8001_sas.c file (NVD).

Technical details

The vulnerability stems from an array-index-out-of-bounds condition that occurs during the rmmod operation when using an expander. The issue was introduced after commit f7b705c238d1 which attempted to set phy_attached to zero when a device is removed. The problem occurs because for devices behind an expander, the attached_phy contains the remote phy id instead of the local phy id, which can be larger than the pm8001_ha->chip->n_phy array size. For example, while the pm8001_ha might have 8 phys with ids 0-7, an expander can have 31 phys with ids 0-30, leading to an out-of-bounds array access (NVD).

Impact

The vulnerability can lead to a system crash or potential memory corruption when removing the SCSI pm80xx driver module (rmmod) on systems using an expander. This primarily affects systems using the pm8001_sas driver with SCSI expander configurations (NVD).

Mitigation and workarounds

The issue has been addressed in the Linux kernel version 6.1.158-1~deb11u1. The fix involves modifying the driver to only clear phy_attached for directly attached devices, preventing the out-of-bounds array access for devices behind an expander (Debian LTS).

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-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-gcp
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-modules-extra
NoYesJan 14, 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