The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-71238

CVE-2025-71238: Linux Kernel Use-After-Free Vulnerability

CVE-2025-71238 is a use-after-free vulnerability in the Linux kernel's SCSI qla2xxx driver that causes kernel panic due to double free errors. This post covers the technical details, affected systems, and mitigation strategies.

Published: March 6, 2026

CVE-2025-71238 Overview

CVE-2025-71238 is a double free vulnerability in the Linux kernel's qla2xxx SCSI driver that can cause kernel panics and system crashes. The vulnerability exists in the bsg_done() function handling within the qla_bsg.c file, where certain error paths incorrectly invoke bsg_done() for failure cases, leading to a double free condition when memory is freed twice.

Critical Impact

This vulnerability can cause complete system crashes (kernel panic) on systems using QLogic Fibre Channel HBAs, affecting enterprise storage infrastructure and high-availability environments.

Affected Products

  • Linux Kernel with qla2xxx SCSI driver module
  • Systems using QLogic Fibre Channel Host Bus Adapters (HBAs)
  • HPE ProLiant servers and other enterprise systems running affected kernel versions

Discovery Timeline

  • 2026-03-04 - CVE CVE-2025-71238 published to NVD
  • 2026-03-04 - Last updated in NVD database

Technical Details for CVE-2025-71238

Vulnerability Analysis

The vulnerability stems from improper memory management in the qla2xxx SCSI driver's BSG (Block layer SCSI Generic) request handling. When processing vendor-specific commands through qla2x00_process_vendor_specific() and qla24xx_bsg_request(), certain error conditions trigger a call to bsg_done() even when the function has already been invoked or when the associated memory structures have already been freed.

The kernel panic stack trace reveals the crash occurs in memcpy_erms() during scatter-gather buffer copy operations (sg_copy_buffer()), indicating that the double free corruption has left memory structures in an invalid state. The page fault at address ff5f5e897b024000 with supervisor write access shows that the kernel attempted to access memory that had already been freed and potentially reallocated.

Root Cause

The root cause lies in inconsistent error handling patterns within the qla_bsg.c file. Most routines in this file call bsg_done() only for success cases, completing the BSG request and freeing associated resources. However, a few code paths incorrectly invoke bsg_done() during failure handling as well. When these failure paths are taken after resources have already been partially or fully cleaned up, the duplicate call to bsg_done() attempts to free memory that is no longer valid, resulting in a double free condition.

Attack Vector

The vulnerability is triggered through the BSG interface when firmware update or vendor-specific SCSI commands are issued to QLogic Fibre Channel adapters. The attack vector requires local access to the system with sufficient privileges to interact with the SCSI BSG interface, typically requiring root or CAP_SYS_RAWIO capabilities.

The vulnerability manifests when error conditions occur during BSG request processing. The double free can corrupt kernel memory structures, potentially leading to:

  1. Immediate kernel panic and system crash (as observed in the error logs)
  2. Memory corruption affecting other kernel subsystems
  3. Potential for exploitation if an attacker can control memory allocation patterns

The call trace from the kernel panic shows the execution path: qla24xx_bsg_request() → qla2x00_process_vendor_specific() → sg_copy_buffer() → memcpy_erms(), where the crash occurs due to accessing freed memory.

Detection Methods for CVE-2025-71238

Indicators of Compromise

  • Kernel panic messages containing "BUG: unable to handle page fault" with qla2xxx or qla_bsg in the call trace
  • System crashes during QLogic HBA firmware updates or vendor-specific operations
  • Oops messages indicating double free or use-after-free conditions in SCSI subsystem
  • Call traces showing qla2x00_process_vendor_specific or qla24xx_bsg_request functions

Detection Strategies

  • Monitor /var/log/messages and /var/log/kern.log for kernel panic messages referencing qla2xxx driver
  • Deploy kernel crash dump analysis to identify double free patterns in qla_bsg.c functions
  • Use KASAN (Kernel Address Sanitizer) in development/test environments to detect memory corruption issues
  • Monitor for unexpected system reboots on servers with QLogic Fibre Channel adapters

Monitoring Recommendations

  • Enable kernel crash dumps (kdump) to capture diagnostic information during kernel panics
  • Implement automated log monitoring for SCSI and qla2xxx driver error messages
  • Track system stability metrics on servers with QLogic HBAs, particularly during maintenance windows
  • Configure alerting for repeated kernel oops or panic events

How to Mitigate CVE-2025-71238

Immediate Actions Required

  • Apply the kernel patches from the stable kernel tree immediately
  • Schedule maintenance windows for kernel updates on affected systems
  • Defer firmware updates on QLogic HBAs until patched kernels are deployed
  • Implement monitoring for kernel panics to quickly identify affected systems

Patch Information

The Linux kernel maintainers have released fixes through multiple stable kernel branches. The patch adds validation before calling bsg_done() to prevent the double free condition. The fix ensures that BSG completion is only invoked once per request, regardless of the error path taken.

Patches are available through the following kernel git commits:

  • Kernel Git Commit 057a5bd
  • Kernel Git Commit 27ac967
  • Kernel Git Commit 31f33b8
  • Kernel Git Commit 708003e
  • Kernel Git Commit 74e7458
  • Kernel Git Commit 871f623
  • Kernel Git Commit c2c6822
  • Kernel Git Commit f2bbb4d

Workarounds

  • Restrict access to the BSG interface by limiting permissions on /dev/bsg/* device nodes
  • Avoid running QLogic HBA firmware update utilities until the kernel is patched
  • Consider temporarily blacklisting the qla2xxx module on systems where Fibre Channel is not critical
  • Implement SELinux or AppArmor policies to restrict processes that can access SCSI BSG interfaces
bash
# Restrict BSG device access temporarily
chmod 600 /dev/bsg/*

# Check current qla2xxx module status
lsmod | grep qla2xxx

# Verify kernel version includes the fix
uname -r

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.03%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit 057a5bd

  • Kernel Git Commit 27ac967

  • Kernel Git Commit 31f33b8

  • Kernel Git Commit 708003e

  • Kernel Git Commit 74e7458

  • Kernel Git Commit 871f623

  • Kernel Git Commit c2c6822

  • Kernel Git Commit f2bbb4d
  • Related CVEs
  • CVE-2026-23462: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-23458: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-23435: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-23456: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English