Skip to main content

Linux Kernel CVE-2025-40118

HIGH
2025-11-12 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local privileged access (CAP_SYS_MODULE)
  2. Delivery
    System has pm80xx HBA with SAS expander
  3. Exploit
    Unload driver via rmmod
  4. Execution
    Driver indexes phy[16] with remote phy id 28
  5. Persist
    Out-of-bounds write corrupts kernel memory
  6. Impact
    Host instability / denial of service

Vulnerability Assessment

Exploitation Conditions

Exploitation requires a very specific setup: (1) a pm80xx-supported SAS/SATA HBA present and the pm80xx driver loaded, (2) at least one device reached through a SAS expander (a directly-attached-only topology does not trigger the bug because attached_phy then equals a valid local phy id), and (3) a module unload event (rmmod pm80xx) or equivalent driver teardown. Limiting factors: the trigger action (rmmod) needs CAP_SYS_MODULE / root, there is no network vector and no user-interaction-from-a-remote-victim path, and the vulnerable branch only executes on non-default hardware configurations that include a SAS expander. These conditions make widespread or remote exploitation impractical.

Impact

The provided CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, score 7.8) rates this as high-severity local, but the signals point to lower real-world priority: EPSS is 0.07% (21st percentile), there is no KEV listing, and no POC is referenced. Importantly, the exploitation trigger is module unload (rmmod), which requires CAP_SYS_MODULE - effectively root - so the PR:L in the supplied vector appears understated; a realistic assessment is PR:H, which sharply limits attacker value since an actor able to rmmod already holds full privilege. The rated C:H/I:H reads optimistic for a bug that manifests as an out-of-bounds write of zero during teardown; the concrete, observed impact is memory corruption leading to instability (availability). Net: this is a genuine kernel robustness fix worth patching on affected fleets, but it is not a remote or unauthenticated threat and does not warrant emergency prioritization. Data conflict to verify: supplied vector says PR:L, but the described trigger (rmmod on an expander-attached HBA) implies privileged/root access - treat PR as high.

Exploit ScenarioDerived

On a server equipped with a pm80xx SAS HBA connected to a SAS expander, an administrator (or a process holding CAP_SYS_MODULE) unloads the driver with rmmod; during teardown the driver clears phy_attached for an expander-attached device using the remote phy id (e.g. 28), writing past the 16-entry local phy array and corrupting adjacent kernel memory, which can crash the host. No public POC is referenced, and because rmmod requires root the practical impact is denial of service / instability rather than privilege escalation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv4 – Jul 30, 2026

Memory corruption in the Linux kernel pm80xx SCSI driver (drivers/scsi/pm8001/pm8001_sas.c) lets a privileged local operation trigger an out-of-bounds array write when a module unload (rmmod) occurs on a system with a SAS expander attached. Introduced by commit f7b705c238d1, the flaw causes the driver to index the fixed 16-entry pm8001_ha->phy array with a remote expander phy id (observed index 28), corrupting kernel memory during teardown. No public exploit identified at time of analysis; EPSS is low (0.07%, 21st percentile) and it is not on CISA KEV, consistent with a stability/robustness bug rather than a weaponized escalation path.

Earlier versions of this analysis (3)
v3 Jul 30, 2026 - 09:14 cvss changed CVSS 7.8

Local memory-safety corruption in the Linux kernel's pm80xx SCSI driver (drivers/scsi/pm8001) occurs when the module is unloaded on a host with a SAS expander attached. Introduced by commit f7b705c238d1, the code uses a device's attached_phy value-which for expander-attached devices is the remote expander phy id, not a local HBA phy id-to index the fixed 16-entry pm8001_ha->phy array, producing an out-of-bounds access flagged by UBSAN. This is a bug-fix CVE with no public exploit identified at time of analysis and a very low EPSS score (0.07%); the fix is available upstream and in Ubuntu USN advisories.

v2 Jul 30, 2026 - 09:14 cvss changed CVSS 7.8

Out-of-bounds array access in the Linux kernel's pm80xx (PM8001) SCSI SAS HBA driver allows local memory corruption when the driver is unloaded while a SAS expander is attached. Introduced by commit f7b705c238d1, the driver uses the remote (expander) phy id to index the fixed 16-entry pm8001_ha->phy array, which only holds the HBA's own local phys; on rmmod this reads/writes past the array bounds (UBSAN flags index 28 out of range). No public exploit identified at time of analysis, and with EPSS at 0.07% real-world exploitation interest is negligible.

v1 Mar 28, 2026 - 19:21

In the Linux kernel, the following vulnerability has been resolved: scsi: pm80xx: Fix array-index-out-of-of-bounds on rmmod Since commit f7b705c238d1 ("scsi: pm80xx: Set phy_attached to zero when.

RemediationAI

Patch available per vendor advisory: update to a fixed Linux kernel build. Distribution users should upgrade via Ubuntu USN-8125-1 and USN-8126-1 (https://ubuntu.com/security/notices/USN-8125-1, https://ubuntu.com/security/notices/USN-8126-1) and reboot into the new kernel. Upstream, apply the stable fixes referenced at git.kernel.org (e.g. https://git.kernel.org/stable/c/251be2f6037fb7ab399f68cd7428ff274133d693 and the other seven backport commits) which restrict clearing phy_attached to directly-attached devices only. As a compensating control until patched, avoid unloading the pm80xx module (rmmod) on hosts that have a SAS expander attached, since the fault only triggers on driver teardown in that topology; trade-off is that you cannot hot-unload/reload the driver for maintenance. Restricting CAP_SYS_MODULE / module unloading to trusted operators further limits who can reach the code path. Do not invent fix version numbers beyond what the advisories state.

Affected ProductsAI

The Linux kernel's pm80xx SCSI driver is affected on any version carrying commit f7b705c238d1 ('scsi: pm80xx: Set phy_attached to zero when device is gone') up to the fixes. The vulnerable code path is only reachable on systems using a pm80xx-supported SAS HBA with a SAS expander in the topology. No CPE strings were supplied in the intelligence; exact affected kernel version ranges should be taken from the Ubuntu advisories. Vendor/distributor advisories: Ubuntu USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1), with upstream stable fixes at git.kernel.org.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The pm80xx driver supports PMC-Sierra/Microsemi (Adaptec) 8001/8081-class SAS/SATA host bus adapters. Each HBA exposes a fixed number of local phys (pm8001_ha->chip->n_phy) tracked in the statically sized pm8001_ha->phy[16] array. When a device is directly attached, attached_phy holds the local phy id and safely indexes this array; but for a device behind a SAS expander, attached_phy holds the expander's REMOTE phy id, which can far exceed n_phy (the reporter's expander had 31 phys, ids 0-30). Using that remote id to index the local phy array is an out-of-bounds access. The root-cause class is an out-of-bounds array write/read (CWE-125/CWE-787), which the vendor input tags as 'Buffer Overflow'; UBSAN flags it as array-index-out-of-bounds at pm8001_sas.c:786. The CWE field is N/A in the source data.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 5.1 MEDIUM

rmmod requires CAP_SYS_MODULE so PR:H; local-only AV:L; out-of-bounds write on unload corrupts kernel memory (A:H, minor I:L) with no confidentiality path (C:N).

3.1 AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE 6.1 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
Red Hat 5.8 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

6
Analysis Updated
Jul 30, 2026 - 09:15 vuln.today
v4 - CVSS changed
Analysis Updated
Jul 30, 2026 - 09:14 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 09:14 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 28, 2026 - 19:30 nvd
Patch available
CVE Published
Nov 12, 2025 - 11:15 nvd
N/A

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

scsi: pm80xx: Fix array-index-out-of-of-bounds on rmmod

Since commit f7b705c238d1 ("scsi: pm80xx: Set phy_attached to zero when device is gone") UBSAN reports:

UBSAN: array-index-out-of-bounds in drivers/scsi/pm8001/pm8001_sas.c:786:17 index 28 is out of range for type 'pm8001_phy [16]'

on rmmod when using an expander.

For a direct attached device, attached_phy contains the local phy id. For a device behind an expander, attached_phy contains the remote phy id, not the local phy id.

I.e. while pm8001_ha will have pm8001_ha->chip->n_phy local phys, for a device behind an expander, attached_phy can be much larger than pm8001_ha->chip->n_phy (depending on the amount of phys of the expander).

E.g. on my system pm8001_ha has 8 phys with phy ids 0-7. One of the ports has an expander connected. The expander has 31 phys with phy ids 0-30.

The pm8001_ha->phy array only contains the phys of the HBA. It does not contain the phys of the expander. Thus, it is wrong to use attached_phy to index the pm8001_ha->phy array for a device behind an expander.

Thus, we can only clear phy_attached for devices that are directly attached.

Executive ViewAI

Why It Matters

Organizations operating Linux systems with SAS expander storage devices face potential unplanned downtime from a memory corruption vulnerability in the pm80xx SCSI driver (CVE-2025-40118, CVSS 7.8) that can crash systems during driver module operations. The vulnerability requires local privileged access and affects only systems with attached SAS expanders, limiting the attack surface to storage administrators and maintenance windows. A vendor patch is available and should be included in the next planned kernel update cycle.

Business Impact: Medium
Compensating Controls

Apply vendor patch. Interim: restrict driver module reloads to scheduled maintenance windows and enforce access controls limiting who can execute administrative commands (rmmod) on production systems.

Threat Intelligence Overview

EPSS Score
0.1%
Top 79% exploitable
Prevalence
Low
pm80xx SAS HBA driver, niche server storage hardware requiring an expander
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:latest Image SLES15-SP6 Image SLES15-SP6-BYOS Image SLES15-SP6-BYOS-Azure Image SLES15-SP6-BYOS-EC2 Image SLES15-SP6-BYOS-GCE Image SLES15-SP6-CHOST-BYOS Image SLES15-SP6-CHOST-BYOS-Aliyun Image SLES15-SP6-CHOST-BYOS-Azure Image SLES15-SP6-CHOST-BYOS-EC2 Image SLES15-SP6-CHOST-BYOS-GCE Image SLES15-SP6-CHOST-BYOS-GDC Image SLES15-SP6-CHOST-BYOS-SAP-CCloud Image SLES15-SP6-EC2 Image SLES15-SP6-EC2-ECS-HVM Image SLES15-SP6-GCE Image SLES15-SP6-HPC-BYOS Image SLES15-SP6-HPC-BYOS-Azure Image SLES15-SP6-HPC-BYOS-EC2 Image SLES15-SP6-HPC-BYOS-GCE Image SLES15-SP6-HPC-EC2 Image SLES15-SP6-HPC-GCE Image SLES15-SP6-Hardened-BYOS Image SLES15-SP6-Hardened-BYOS-Azure Image SLES15-SP6-Hardened-BYOS-EC2 Image SLES15-SP6-Hardened-BYOS-GCE Image SLES15-SP6-SAP Image SLES15-SP6-SAP-Azure Image SLES15-SP6-SAP-EC2 Image SLES15-SP6-SAP-GCE Image SLES15-SP6-SAPCAL Image SLES15-SP6-SAPCAL-Azure Image SLES15-SP6-SAPCAL-EC2 Image SLES15-SP6-SAPCAL-GCE Affected
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.1/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.80 Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.114 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.82 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.116 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.55 Affected

References

Advisories & patches
ADVISORY https://ubuntu.com/security/notices/USN-8125-1 ADVISORY https://ubuntu.com/security/notices/USN-8126-1 ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4393/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4422/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4505/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4516/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4517/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4521/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20012/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20015/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20021/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20039/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20059/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20334/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20473/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20478/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20496/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20519/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20562/ REF https://git.kernel.org/stable/c/251be2f6037fb7ab399f68cd7428ff274133d693 REF https://git.kernel.org/stable/c/45acbf154befedd9bc135f5e031fe7855d1e6493 REF https://git.kernel.org/stable/c/83ced3c206c292458e47c7fac54223abc7141585 REF https://git.kernel.org/stable/c/9326a1541e1b7ed3efdbab72061b82cf01c6477a REF https://git.kernel.org/stable/c/9c671d4dbfbfb0d73cfdfb706afb36d9ad60a582 REF https://git.kernel.org/stable/c/d94be0a6ae9ade706d4270e740bdb4f79953a7fc REF https://git.kernel.org/stable/c/e62251954a128a2d0fcbc19e5fa39e08935bb628 REF https://git.kernel.org/stable/c/eef5ef400893f8e3dbb09342583be0cdc716d566

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy