Critical Use-After-Free Vulnerability in Linux Kernel - CVE-2022-49377

linux Updated 02 Oct 2025

Summary

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

CVE-2022-49377: In the Linux kernel, the following vulnerability has been resolved: blk-mq: don't touch ->tagset in blk_mq_get_sq_hctx blk_mq_run_hw_queues() could be run when there isn't queued request and after queue is cleaned up, at... Affects linux versions < 5.18.5-1. Fixed in 5.18.5-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 the core component of many operating systems, providing essential services for hardware and software interactions. It is known for its stability, performance, and security features. However, like any complex software, it can have vulnerabilities. CVE-2022-49377 is a significant issue affecting the Linux kernel, specifically in the blk-mq subsystem, which manages block device I/O scheduling. This vulnerability can lead to severe consequences if exploited, including system crashes or unauthorized access.

Vulnerability Detail

CVE-2022-49377 is a use-after-free vulnerability in the Linux kernel's blk-mq subsystem. It occurs when the blk_mq_run_hw_queues() function is executed without any queued requests, leading to the cleanup of the request queue. At this point, the tagset associated with the queue may be freed, resulting in a use-after-free condition. This can potentially allow an attacker to execute arbitrary code or cause a denial of service by manipulating memory that has already been freed. The vulnerability arises from improper handling of the tagset's lifecycle, which is managed by the driver and often freed after the blk_cleanup_queue() function returns.

How To Fix

Minimum fixed version

5.18.5-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 available patch by updating to the fixed version of the Linux kernel.

Conclusion

CVE-2022-49377 is a critical vulnerability in the Linux kernel that requires immediate attention. Updating to the fixed version is essential to protect your system from potential exploitation. Utilize tools like Vulert to stay informed about vulnerabilities in your software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49377 is a use-after-free vulnerability in the Linux kernel's blk-mq subsystem that can lead to system crashes or unauthorized access.

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 without any signup.

Exploitation of this vulnerability can lead to arbitrary code execution or denial of service, compromising system stability and security.

You can update your Linux kernel by running the command: sudo apt-get install linux=5.18.5-1 on Debian systems.

Currently, there are no specific workarounds available. The recommended action is to update to the patched version.

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.18.5-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