CVE-2025-40118: Linux kernel · scsi: pm80xx: Fix array-index-out-of-of-bounds on rmmod
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 5.15.0-1100.107~20.04.2 : patch Linux kernel soon.
Data as of 3 Nov 2026, 17:19 UTC
- Patch
- Available – fixed in 5.15.0-1100.107~20.04.2, 5.15.0-1110.119~20.04.1, 5.15.0-1100.109~20.04.1 +69
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-8029-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8030-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-8034-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-5 (opens in a new tab)
- ubuntu.com/security/notices/USN-8034-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8048-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-6 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linuxpkg:deb/ubuntu/linux?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10linux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-oraclepkg:deb/ubuntu/linux-oracle?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and has been released in multiple Linux kernel versions starting from 5.15.0-1094.97 and related updates. Users and administrators should upgrade to these fixed kernel versions to remediate the vulnerability. No alternative mitigations are indicated by the vendor advisory.
Description
CVE-2025-40118 is a high-severity vulnerability in the Linux kernel's SCSI pm80xx driver. It involves an array index out-of-bounds error triggered during module removal (rmmod) when using an expander device. The flaw arises because the driver incorrectly uses a remote phy ID to index a local phy array, leading to out-of-bounds access. This issue has been fixed in multiple Linux kernel versions starting from 5.15.0-1094.97 and related releases.
References
- ubuntu.com/security/CVE-2025-40118 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-40118 (opens in a new tab)
- git.kernel.org/linus/251be2f6037fb7ab399f68cd7428ff274133d693 (opens in a new tab)
- git.kernel.org/stable/c/251be2f6037fb7ab399f68cd7428ff274133d693 (opens in a new tab)
- git.kernel.org/stable/c/45acbf154befedd9bc135f5e031fe7855d1e6493 (opens in a new tab)
- git.kernel.org/stable/c/83ced3c206c292458e47c7fac54223abc7141585 (opens in a new tab)
- git.kernel.org/stable/c/9326a1541e1b7ed3efdbab72061b82cf01c6477a (opens in a new tab)
- git.kernel.org/stable/c/9c671d4dbfbfb0d73cfdfb706afb36d9ad60a582 (opens in a new tab)
- git.kernel.org/stable/c/d94be0a6ae9ade706d4270e740bdb4f79953a7fc (opens in a new tab)
- git.kernel.org/stable/c/e62251954a128a2d0fcbc19e5fa39e08935bb628 (opens in a new tab)
- git.kernel.org/stable/c/eef5ef400893f8e3dbb09342583be0cdc716d566 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8030-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-8034-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-5 (opens in a new tab)