Critical Vulnerability in Linux Kernel: Potential Crash Due to BSG Queue Mismanagement

linux Updated 02 Oct 2025

Summary

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

DEBIAN-CVE-2025-21723: In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix possible crash when setting up bsg fails If bsg_setup_queue() fails, the bsg_queue is assigned a non-NULL value. Affects linux versions < 6.12.13-1. Fixed in 6.12.13-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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, responsible for managing hardware and system resources. It provides essential services for all other parts of the operating system. The kernel is highly complex and is continuously updated to improve performance and security. This vulnerability specifically affects the SCSI (Small Computer System Interface) subsystem, which is crucial for communication between the operating system and storage devices. The issue arises from improper handling of the bsg_queue, which can lead to system crashes.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the SCSI subsystem related to the mpi3mr driver. When the function bsg_setup_queue() fails, it incorrectly assigns a non-NULL value to the bsg_queue. This leads to a situation where the condition in mpi3mr_bsg_exit() fails, preventing the execution from entering the bsg_remove_queue() function. As a result, this can cause a kernel NULL pointer dereference, leading to a crash. The specific error message generated is: 'BUG: kernel NULL pointer dereference, address: 000000000000041c'. This vulnerability can severely impact system stability and reliability.

How To Fix

Minimum fixed version

6.12.13-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, no specific workarounds are provided for this vulnerability. The best course of action is to apply the patch as soon as it becomes available.

Conclusion

The identified vulnerability in the Linux kernel poses a significant risk to system stability due to improper handling of the bsg_queue. It is essential for users to update to the patched version 6.12.13-1 to mitigate this risk. Regular monitoring and prompt updates are crucial for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

This vulnerability can lead to system crashes due to a kernel NULL pointer dereference, affecting system stability.

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.

While no specific workarounds are available, it is crucial to monitor your system for any unusual behavior and plan to update as soon as possible.

Yes, this vulnerability affects specific versions of the Linux kernel, particularly those prior to the patched version 6.12.13-1.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.12.13-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