CVE-2022-50532
scsi: mpt3sas: Fix possible resource leaks in mpt3sas_transport_port_add()
Mitigation
- Upgrade Linux to 78316e9dfc24906dd474630928ed1d3c562b568e or later.
Who should check
- Anyone running Linux >= f92363d12359498f9a9960511de1a550f0ec41c2, < d60000cb1195a464080b0efb4949daf7594e0020; >= f92363d12359498f9a9960511de1a550f0ec41c2, < ce1a69cc85006b494353911b35171da195d79e25; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 6a92129c8f999ff5b122c100ce7f625eb3e98c4b; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 6f6768e2fc8638fabdd8802c2ef693d7aef01db1; >= f92363d12359498f9a9960511de1a550f0ec41c2, < d17bca3ddfe507874cb826d32721552da12e741f; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 78316e9dfc24906dd474630928ed1d3c562b568e
- Anyone running Linux 3.8
Vulnerability facts
- Affected
- Linux >= f92363d12359498f9a9960511de1a550f0ec41c2, < d60000cb1195a464080b0efb4949daf7594e0020; >= f92363d12359498f9a9960511de1a550f0ec41c2, < ce1a69cc85006b494353911b35171da195d79e25; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 6a92129c8f999ff5b122c100ce7f625eb3e98c4b; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 6f6768e2fc8638fabdd8802c2ef693d7aef01db1; >= f92363d12359498f9a9960511de1a550f0ec41c2, < d17bca3ddfe507874cb826d32721552da12e741f; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 78316e9dfc24906dd474630928ed1d3c562b568e; Linux 3.8
- Fixed in
- Linux 6a92129c8f999ff5b122c100ce7f625eb3e98c4b, Linux 6f6768e2fc8638fabdd8802c2ef693d7aef01db1, Linux 78316e9dfc24906dd474630928ed1d3c562b568e
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= f92363d12359498f9a9960511de1a550f0ec41c2, < d60000cb1195a464080b0efb4949daf7594e0020; >= f92363d12359498f9a9960511de1a550f0ec41c2, < ce1a69cc85006b494353911b35171da195d79e25; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 6a92129c8f999ff5b122c100ce7f625eb3e98c4b; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 6f6768e2fc8638fabdd8802c2ef693d7aef01db1; >= f92363d12359498f9a9960511de1a550f0ec41c2, < d17bca3ddfe507874cb826d32721552da12e741f; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 78316e9dfc24906dd474630928ed1d3c562b568e | — | cvelist |
| Linux | 3.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-50532. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50532.md Affected: Linux >= f92363d12359498f9a9960511de1a550f0ec41c2, < d60000cb1195a464080b0efb4949daf7594e0020; >= f92363d12359498f9a9960511de1a550f0ec41c2, < ce1a69cc85006b494353911b35171da195d79e25; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 6a92129c8f999ff5b122c100ce7f625eb3e98c4b; >= f92363d12359498f9a99605… Fixed in: Linux 6a92129c8f999ff5b122c100ce7f625eb3e98c4b, Linux 6f6768e2fc8638fabdd8802c2ef693d7aef01db1, Linux 78316e9dfc24906dd474630928ed1d3c562b568e 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.
References
Patches
- https://git.kernel.org/stable/c/d60000cb1195a464080b0efb4949daf7594e0020
- https://git.kernel.org/stable/c/ce1a69cc85006b494353911b35171da195d79e25
- https://git.kernel.org/stable/c/6a92129c8f999ff5b122c100ce7f625eb3e98c4b
- https://git.kernel.org/stable/c/6f6768e2fc8638fabdd8802c2ef693d7aef01db1
- https://git.kernel.org/stable/c/d17bca3ddfe507874cb826d32721552da12e741f
- https://git.kernel.org/stable/c/78316e9dfc24906dd474630928ed1d3c562b568e
FAQ
Is CVE-2022-50532 being exploited?
There is no confirmed exploitation: CVE-2022-50532 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50532?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-50532?
Linux >= f92363d12359498f9a9960511de1a550f0ec41c2, < d60000cb1195a464080b0efb4949daf7594e0020; >= f92363d12359498f9a9960511de1a550f0ec41c2, < ce1a69cc85006b494353911b35171da195d79e25; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 6a92129c8f999ff5b122c100ce7f625eb3e98c4b; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 6f6768e2fc8638fabdd8802c2ef693d7aef01db1; >= f92363d12359498f9a9960511de1a550f0ec41c2, < d17bca3ddfe507874cb826d32721552da12e741f; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 78316e9dfc24906dd474630928ed1d3c562b568e; Linux 3.8.
Is there a fix for CVE-2022-50532?
Yes. Fixed in Linux 6a92129c8f999ff5b122c100ce7f625eb3e98c4b, Linux 6f6768e2fc8638fabdd8802c2ef693d7aef01db1, Linux 78316e9dfc24906dd474630928ed1d3c562b568e. Upgrade Linux to 78316e9dfc24906dd474630928ed1d3c562b568e or later.
How do I check if I'm affected by CVE-2022-50532?
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.