Use-After-Free Vulnerability in Linux Kernel's mpt3sas Package

linux Updated 02 Oct 2025

Summary

26/02/2025
N/A
Yes i
Unrated
Not published

CVE-2022-49082: In the Linux kernel, the following vulnerability has been resolved: scsi: mpt3sas: Fix use after free in _scsih_expander_node_remove() The function mpt3sas_transport_port_remove() called in _scsih_expander_node_remove()... Affects linux versions < 5.17.3-1. Fixed in 5.17.3-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Linux kernel is a core component of the operating system that manages hardware and system resources. The mpt3sas package is a driver for SAS (Serial Attached SCSI) controllers, enabling communication between the operating system and storage devices. This package is crucial for systems that rely on SAS for data storage and retrieval. The vulnerability in question arises from improper memory management within the mpt3sas driver, leading to potential system instability and security risks.

Vulnerability Detail

The vulnerability, identified as CVE-2022-49082, is a use-after-free issue in the mpt3sas driver of the Linux kernel. It occurs when the function mpt3sas_transport_port_remove() frees the port field of the sas_expander structure, but subsequent calls to ioc_info() attempt to access this freed memory. This can lead to undefined behavior, including crashes or exploitation by malicious actors. The vulnerability is particularly concerning during the removal of the driver module, as it can be triggered by the rmmod command, potentially allowing attackers to execute arbitrary code or cause system crashes.

How To Fix

Minimum fixed version

5.17.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch as soon as it is available.

Conclusion

CVE-2022-49082 is a critical vulnerability in the mpt3sas driver of the Linux kernel that poses significant risks to system stability and security. Users are strongly advised to update their systems to the patched version to mitigate these risks. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49082 is a use-after-free vulnerability in the mpt3sas driver of the Linux kernel that can lead to system crashes or exploitation.

You can use tools like Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.

The risks include potential system crashes, data corruption, and the possibility of remote code execution by attackers.

You can update your Linux kernel by running 'sudo apt-get update && sudo apt-get install linux' in your terminal.

The best prevention is to apply the patch as soon as it is available and to regularly update your system.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

5.17.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback