Linux kernel: scsi: mpt3sas: Fix possible resource leaks in mpt3sas_transport_port_add()
Overview
In the Linux kernel, the following vulnerability has been resolved: scsi: mpt3sas: Fix possible resource leaks in mpt3sas_transport_port_add() In mpt3sas_transport_port_add(), if sas_rphy_add() returns error, sas_rphy_free() needs be called to free the resource allocated in sas_end_device_alloc(). Otherwise a kernel crash will happen: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000108 CPU: 45 PID: 37020 Comm: bash Kdump: loaded Tainted: G W 6.1.0-rc1+ #189 pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : device_del+0x54/0x3d0 lr : device_del+0x37c/0x3d0 Call trace: device_del+0x54/0x3d0 attribute_container_class_device_del+0x28/0x38 transport_remove_classdev+0x6c/0x80 attribute_container_device_trigger+0x108/0x110 transport_remove_device+0x28/0x38 sas_rphy_remove+0x50/0x78 [scsi_transport_sas] sas_port_delete+0x30/0x148 [scsi_transport_sas] do_sas_phy_delete+0x78/0x80 [scsi_transport_sas] device_for_each_child+0x68/0xb0 sas_remove_children+0x30/0x50 [scsi_transport_sas] sas_rphy_remove+0x38/0x78 [scsi_transport_sas] sas_port_delete+0x30/0x148 [scsi_transport_sas] do_sas_phy_delete+0x78/0x80 [scsi_transport_sas] device_for_each_child+0x68/0xb0 sas_remove_children+0x30/0x50 [scsi_transport_sas] sas_remove_host+0x20/0x38 [scsi_transport_sas] scsih_remove+0xd8/0x420 [mpt3sas] Because transport_add_device() is not called when sas_rphy_add() fails, the device is not added. When sas_rphy_remove() is subsequently called to remove the device in the remove() path, a NULL pointer dereference happens.
- Published
- 10/7/2025
- Last modified
- 11/5/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
linux kernel linux | ≥ 3.8, < 5.4.229 | Verify advisory | Source |
linux kernel linux | ≥ 5.5, < 5.10.163 | Verify advisory | Source |
linux kernel linux | ≥ 5.11, < 5.15.86 | Verify advisory | Source |
linux kernel linux | ≥ 5.16, < 6.0.16 | Verify advisory | Source |
linux kernel linux | ≥ 6.1, < 6.1.2 | Verify advisory | Source |
Linux Linux | ≥ f92363d12359498f9a9960511de1a550f0ec41c2, < d60000cb1195a464080b0efb4949daf7594e0020 | Verify advisory | Source |
Linux Linux | ≥ f92363d12359498f9a9960511de1a550f0ec41c2, < ce1a69cc85006b494353911b35171da195d79e25 | Verify advisory | Source |
Linux Linux | ≥ f92363d12359498f9a9960511de1a550f0ec41c2, < 6a92129c8f999ff5b122c100ce7f625eb3e98c4b | Verify advisory | Source |
Linux Linux | ≥ f92363d12359498f9a9960511de1a550f0ec41c2, < 6f6768e2fc8638fabdd8802c2ef693d7aef01db1 | Verify advisory | Source |
Linux Linux | ≥ f92363d12359498f9a9960511de1a550f0ec41c2, < d17bca3ddfe507874cb826d32721552da12e741f | Verify advisory | Source |
Linux Linux | ≥ f92363d12359498f9a9960511de1a550f0ec41c2, < 78316e9dfc24906dd474630928ed1d3c562b568e | Verify advisory | Source |
Linux Linux | 3.8 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.