Skip to main content
Vulnerability Database/CVE-2026-97529

CVE-2026-97529: Linux Kernel SCSI Buffer Overflow Vulnerability

CVE-2026-97529 is a buffer overflow flaw in the Linux kernel SCSI qla2xxx driver that allows out-of-bounds heap reads through malformed BSG requests. This article covers technical details, affected versions, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97529 Overview

CVE-2026-97529 is a Linux kernel vulnerability in the qla2xxx SCSI driver. The Fibre Channel Block SCSI Generic (FC BSG) transport allocates job->request with memdup_user() using a user-supplied request_len. For FC_BSG_HST_VENDOR requests, fc_bsg_host_dispatch() only validates that request_len covers msgcode and vendor_id, leaving the vendor_cmd[] flexible array unchecked. The qla2xxx driver then reads vendor_cmd[0] and additional elements without verifying length. A local caller holding CAP_SYS_RAWIO can submit a short request whose vendor_id matches the host, triggering out-of-bounds heap reads detectable by KASAN.

Critical Impact

A privileged local user with CAP_SYS_RAWIO can cause out-of-bounds heap reads in the qla2xxx driver, potentially leading to kernel information disclosure, command mis-selection, or kernel panic.

Affected Products

  • Linux kernel versions containing the qla2xxx SCSI driver with unpatched FC BSG vendor command handling
  • Systems using QLogic/Marvell Fibre Channel Host Bus Adapters managed through the FC BSG transport
  • Distributions shipping affected mainline kernel revisions prior to the referenced stable commits

Discovery Timeline

  • 2026-09-25 - CVE-2026-97529 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97529

Vulnerability Analysis

The flaw resides in the FC BSG request handling path within the qla2xxx driver. User space submits a BSG request whose payload is copied verbatim into a kernel heap allocation sized by request_len. The generic FC BSG dispatcher validates only the fixed msgcode and vendor_id fields before handing control to the low-level driver. The driver then dereferences vendor_cmd[0], vendor_cmd[1], and vendor_cmd[2], or casts structures onto the vendor command area, without confirming the allocation extends far enough to contain them. This is an [CWE-125] out-of-bounds read class issue triggered by missing length validation in a kernel ioctl-like interface.

Root Cause

The vendor_cmd[] member is a flexible array appended after the vendor header. Neither fc_bsg_host_dispatch() nor the qla2xxx sub-handlers verified that the user-supplied request_len was large enough to safely access the selector or any following command words. Reads therefore extended past the heap object into adjacent memory, which KASAN flagged as out-of-bounds. Sub-handlers affected include qla24xx_proc_fcp_prio_cfg_cmd(), qla2x00_process_loopback(), qla84xx_reset(), qla84xx_updatefw(), qla2x00_read_optrom(), qla2x00_update_optrom(), qlafx00_mgmt_cmd(), and qla28xx_validate_flash_image().

Attack Vector

Exploitation requires local access and the CAP_SYS_RAWIO capability, which is typically held by root or privileged storage management daemons. The attacker opens the FC BSG device for a qla2xxx-managed host and issues a vendor-specific BSG request with a truncated request_len, a matching vendor_id, and no valid vendor_cmd[] payload. The driver reads beyond the allocation, enabling kernel heap information disclosure, command mis-selection with unpredictable device behavior, or a kernel panic resulting in denial of service. For technical details, see the upstream fixes: Kernel commit 4cf38dd9, Kernel commit 740f3458, and Kernel commit f75bff45.

Detection Methods for CVE-2026-97529

Indicators of Compromise

  • KASAN splats in dmesg referencing qla2x00_process_vendor_specific, qla24xx_bsg_request, or any of the listed sub-handlers with an out-of-bounds read report.
  • Unexpected kernel panics or oops events originating from the qla2xxx module on hosts exposing FC BSG devices under /dev/bsg/.
  • Unusual activity by non-storage-management processes opening /dev/bsg/fc_host* and issuing FC_BSG_HST_VENDOR requests.

Detection Strategies

  • Audit kernel logs for qla2xxx warnings, KASAN reports, or BUG entries following BSG ioctl activity.
  • Monitor openat and ioctl syscalls targeting /dev/bsg/* paths via auditd or eBPF-based telemetry.
  • Correlate processes invoking CAP_SYS_RAWIO with FC BSG write operations to flag non-sanctioned callers.

Monitoring Recommendations

  • Enable persistent kernel log capture and forward to a centralized log store for crash and KASAN event retention.
  • Track package versions of running kernels across the fleet to confirm patch coverage on hosts with QLogic/Marvell FC HBAs.
  • Alert on repeated short-length BSG vendor requests, which are indicative of fuzzing or exploitation attempts.

How to Mitigate CVE-2026-97529

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the stable tree commits as soon as vendor builds become available.
  • Restrict CAP_SYS_RAWIO to the minimum set of trusted storage management services and audit any additional holders.
  • Limit access permissions on /dev/bsg/* nodes so only authorized storage daemons can issue BSG commands.

Patch Information

The fix adds a central guard in qla2x00_process_vendor_specific() to ensure the selector is in bounds, restricts the early vendor_cmd[0] read in qla24xx_bsg_request() to sufficiently long messages, and adds explicit request_len checks to each affected sub-handler. Patches are available at Kernel commit 4cf38dd9, Kernel commit 740f3458, and Kernel commit f75bff45. Rebuild and deploy a kernel that includes these commits, then reboot affected hosts.

Workarounds

  • Unload the qla2xxx module on hosts that do not require Fibre Channel connectivity using modprobe -r qla2xxx.
  • Blacklist the qla2xxx module in /etc/modprobe.d/ where FC HBAs are not in use to prevent runtime loading.
  • Harden filesystem permissions on /dev/bsg/ so only root-owned storage management processes can issue vendor BSG commands.
bash
# Verify kernel version and qla2xxx module status
uname -r
lsmod | grep qla2xxx

# Restrict BSG device access to the storage admin group
chown root:storage /dev/bsg/fc_host*
chmod 0660 /dev/bsg/fc_host*

# Optional: blacklist the module where FC is not required
echo "blacklist qla2xxx" > /etc/modprobe.d/blacklist-qla2xxx.conf

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.