# CVE-2025-40115: scsi: mpt3sas: Fix crash in transport port remove by using ioc\_info()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-11-12T10:23:17.283Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< b3a6d153861d0f29b80882470d14aafb8d687dc2; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 4e1442bae50ed633c2fe8058f47cd79b4ad88b9b; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< a89253eb4e648deace48a4e38996afd182eb95e3; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< fa153fb40c61f8ca01237427c97a0b93ba32c403; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 6459dba4f35017448535a799cf699d5205eb5489; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 1fd39e14d47d9b4965dd5c9cff16e64ba3e71a62; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 970ceb1bdc3d6c2af9245d6eca38606e74fcb6b8; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 1703fe4f8ae50d1fb6449854e1fcaed1053e3a14
- Anyone running Linux 3.8

## Description

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

scsi: mpt3sas: Fix crash in transport port remove by using ioc\_info()

During mpt3sas\_transport\_port\_remove(), messages were logged with
dev\_printk() against &mpt3sas\_port-\>port-\>dev. At this point the SAS
transport device may already be partially unregistered or freed, leading
to a crash when accessing its struct device.

Using ioc\_info(), which logs via the PCI device (ioc-\>pdev-\>dev),
guaranteed to remain valid until driver removal.

\[83428.295776\] Oops: general protection fault, probably for non-canonical address 0x6f702f323a33312d: 0000 \[\#1\] SMP NOPTI
\[83428.295785\] CPU: 145 UID: 0 PID: 113296 Comm: rmmod Kdump: loaded Tainted: G           OE       6.16.0-rc1+ \#1 PREEMPT(voluntary)
\[83428.295792\] Tainted: \[O\]=OOT\_MODULE, \[E\]=UNSIGNED\_MODULE
\[83428.295795\] Hardware name: Dell Inc. Precision 7875 Tower/, BIOS 89.1.67 02/23/2024
\[83428.295799\] RIP: 0010:\_\_dev\_printk+0x1f/0x70
\[83428.295805\] Code: 90 90 90 90 90 90 90 90 90 90 90 0f 1f 44 00 00 49 89 d1 48 85 f6 74 52 4c 8b 46 50 4d 85 c0 74 1f 48 8b 46 68 48 85 c0 74 22 \<48\> 8b 08 0f b6 7f 01 48 c7 c2 db e8 42 ad 83 ef 30 e9 7b f8 ff ff
\[83428.295813\] RSP: 0018:ff85aeafc3137bb0 EFLAGS: 00010206
\[83428.295817\] RAX: 6f702f323a33312d RBX: ff4290ee81292860 RCX: 5000cca25103be32
\[83428.295820\] RDX: ff85aeafc3137bb8 RSI: ff4290eeb1966c00 RDI: ffffffffc1560845
\[83428.295823\] RBP: ff85aeafc3137c18 R08: 74726f702f303a33 R09: ff85aeafc3137bb8
\[83428.295826\] R10: ff85aeafc3137b18 R11: ff4290f5bd60fe68 R12: ff4290ee81290000
\[83428.295830\] R13: ff4290ee6e345de0 R14: ff4290ee81290000 R15: ff4290ee6e345e30
\[83428.295833\] FS:  00007fd9472a6740(0000) GS:ff4290f5ce96b000(0000) knlGS:0000000000000000
\[83428.295837\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[83428.295840\] CR2: 00007f242b4db238 CR3: 00000002372b8006 CR4: 0000000000771ef0
\[83428.295844\] PKRU: 55555554
\[83428.295846\] Call Trace:
\[83428.295848\]  \<TASK\>
\[83428.295850\]  \_dev\_printk+0x5c/0x80
\[83428.295857\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[83428.295863\]  mpt3sas\_transport\_port\_remove+0x1c7/0x420 \[mpt3sas\]
\[83428.295882\]  \_scsih\_remove\_device+0x21b/0x280 \[mpt3sas\]
\[83428.295894\]  ? \_scsih\_expander\_node\_remove+0x108/0x140 \[mpt3sas\]
\[83428.295906\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[83428.295910\]  mpt3sas\_device\_remove\_by\_sas\_address.part.0+0x8f/0x110 \[mpt3sas\]
\[83428.295921\]  \_scsih\_expander\_node\_remove+0x129/0x140 \[mpt3sas\]
\[83428.295933\]  \_scsih\_expander\_node\_remove+0x6a/0x140 \[mpt3sas\]
\[83428.295944\]  scsih\_remove+0x3f0/0x4a0 \[mpt3sas\]
\[83428.295957\]  pci\_device\_remove+0x3b/0xb0
\[83428.295962\]  device\_release\_driver\_internal+0x193/0x200
\[83428.295968\]  driver\_detach+0x44/0x90
\[83428.295971\]  bus\_remove\_driver+0x69/0xf0
\[83428.295975\]  pci\_unregister\_driver+0x2a/0xb0
\[83428.295979\]  \_mpt3sas\_exit+0x1f/0x300 \[mpt3sas\]
\[83428.295991\]  \_\_do\_sys\_delete\_module.constprop.0+0x174/0x310
\[83428.295997\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[83428.296000\]  ? \_\_x64\_sys\_getdents64+0x9a/0x110
\[83428.296005\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[83428.296009\]  ? syscall\_trace\_enter+0xf6/0x1b0
\[83428.296014\]  do\_syscall\_64+0x7b/0x2c0
\[83428.296019\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[83428.296023\]  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e

## Affected and fixed versions

- Linux: \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< b3a6d153861d0f29b80882470d14aafb8d687dc2; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 4e1442bae50ed633c2fe8058f47cd79b4ad88b9b; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< a89253eb4e648deace48a4e38996afd182eb95e3; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< fa153fb40c61f8ca01237427c97a0b93ba32c403; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 6459dba4f35017448535a799cf699d5205eb5489; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 1fd39e14d47d9b4965dd5c9cff16e64ba3e71a62; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 970ceb1bdc3d6c2af9245d6eca38606e74fcb6b8; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 1703fe4f8ae50d1fb6449854e1fcaed1053e3a14 (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- Upgrade Linux to 1703fe4f8ae50d1fb6449854e1fcaed1053e3a14 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40115. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40115.md
Affected: Linux >= f92363d12359498f9a9960511de1a550f0ec41c2, < b3a6d153861d0f29b80882470d14aafb8d687dc2; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 4e1442bae50ed633c2fe8058f47cd79b4ad88b9b; >= f92363d12359498f9a9960511de1a550f0ec41c2, < a89253eb4e648deace48a4e38996afd182eb95e3; >= f92363d12359498f9a99605…
Fixed in: Linux 4e1442bae50ed633c2fe8058f47cd79b4ad88b9b, Linux 6459dba4f35017448535a799cf699d5205eb5489, Linux 1fd39e14d47d9b4965dd5c9cff16e64ba3e71a62, Linux 970ceb1bdc3d6c2af9245d6eca38606e74fcb6b8, Linux 1703fe4f8ae50d1fb6449854e1fcaed1053e3a14

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40115 being exploited?

There is no confirmed exploitation: CVE-2025-40115 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40115?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40115?

Linux \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< b3a6d153861d0f29b80882470d14aafb8d687dc2; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 4e1442bae50ed633c2fe8058f47cd79b4ad88b9b; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< a89253eb4e648deace48a4e38996afd182eb95e3; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< fa153fb40c61f8ca01237427c97a0b93ba32c403; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 6459dba4f35017448535a799cf699d5205eb5489; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 1fd39e14d47d9b4965dd5c9cff16e64ba3e71a62; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 970ceb1bdc3d6c2af9245d6eca38606e74fcb6b8; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 1703fe4f8ae50d1fb6449854e1fcaed1053e3a14; Linux 3.8.

### Is there a fix for CVE-2025-40115?

Yes. Fixed in Linux 4e1442bae50ed633c2fe8058f47cd79b4ad88b9b, Linux 6459dba4f35017448535a799cf699d5205eb5489, Linux 1fd39e14d47d9b4965dd5c9cff16e64ba3e71a62, Linux 970ceb1bdc3d6c2af9245d6eca38606e74fcb6b8, Linux 1703fe4f8ae50d1fb6449854e1fcaed1053e3a14. Upgrade Linux to 1703fe4f8ae50d1fb6449854e1fcaed1053e3a14 or later.

### How do I check if I'm affected by CVE-2025-40115?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/b3a6d153861d0f29b80882470d14aafb8d687dc2>
- other: <https://git.kernel.org/stable/c/4e1442bae50ed633c2fe8058f47cd79b4ad88b9b>
- other: <https://git.kernel.org/stable/c/a89253eb4e648deace48a4e38996afd182eb95e3>
- other: <https://git.kernel.org/stable/c/fa153fb40c61f8ca01237427c97a0b93ba32c403>
- other: <https://git.kernel.org/stable/c/6459dba4f35017448535a799cf699d5205eb5489>
- other: <https://git.kernel.org/stable/c/1fd39e14d47d9b4965dd5c9cff16e64ba3e71a62>
- other: <https://git.kernel.org/stable/c/970ceb1bdc3d6c2af9245d6eca38606e74fcb6b8>
- other: <https://git.kernel.org/stable/c/1703fe4f8ae50d1fb6449854e1fcaed1053e3a14>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40115>

HTML: <https://flawdb.com/CVE-2025-40115> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40115>
