CVE-2025-40118
BaseFortify
Publication date: 2025-11-12
Last updated on: 2025-11-12
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is an array-index-out-of-bounds error in the Linux kernel's SCSI pm80xx driver. It occurs when removing the module (rmmod) while using an expander device. The issue arises because the code incorrectly uses a remote phy ID (which can be larger) to index an array that only contains local phys, leading to out-of-bounds access. This happens because the pm8001_ha->phy array only contains phys of the Host Bus Adapter (HBA), not the expander's phys. The fix ensures that phy_attached is only cleared for directly attached devices, preventing invalid array indexing.
How can this vulnerability impact me? :
This vulnerability can cause undefined behavior such as kernel crashes or memory corruption due to out-of-bounds array access when removing the pm80xx driver module with an expander device connected. This can lead to system instability or denial of service.