Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2022-50532 — kernel

🟡 CVSS 5.5 — Medium ✅ No Known Exploit NVD
5.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

scsi: mpt3sas: Fix possible resource leaks in mpt3sas_transport_port_add()

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.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

  • Attack vector: Local — a local account, shell or session on the host is needed.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: High — total loss, or loss the attacker controls.

Affected software

CVE-2022-50532 is recorded against 2 packages.

  • kernel (from 6.1.0 up to 6.1.2)
  • linux-kernel (from 6.1 up to 6.1.2)

Timeline and source

Published on 7 October 2025 and last revised on 12 August 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

Other advisories for this package

kernel has other advisories on record. If you are patching this one, these are worth checking on the same host:

CVE-2022-50532 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Medium
CVSS Score 5.5
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2025-10-07
Updated 2026-08-20
Modified 2026-08-12

Affected Packages

Software From version Fixed in
kernel 6.1.0 6.1.2
linux-kernel 6.1 6.1.2

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in kernel

CVE-2022-50532 is rated CVSS 5.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2022
✓