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

CVE-2026-97535: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-97535 is a buffer overflow flaw in the Linux kernel SCSI qla2xxx driver that allows out-of-bounds memory writes. This post explains its technical details, affected versions, impact, and mitigation steps.

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-97535 Overview

CVE-2026-97535 is an out-of-bounds write vulnerability in the Linux kernel's qla2xxx SCSI driver for QLogic Fibre Channel adapters. The flaw resides in qla25xx_ctrlvp_iocb(), where the virtual port (VP) control IOCB computes a bitmap index from vp_index without validating that the index fits within the fixed 16-byte vp_idx_map array. Adapters reporting max_npiv_vports values of 191 or 255 can trigger a write of up to 16 bytes past the array boundary, corrupting adjacent IOCB fields or request-ring slots. The issue has been resolved upstream through three stable kernel commits.

Critical Impact

An attacker or misbehaving firmware supplying a vp_index above 128 can corrupt kernel memory adjacent to the VP control IOCB, risking data integrity, system instability, or privilege escalation.

Affected Products

  • Linux kernel SCSI subsystem — qla2xxx driver
  • Systems using QLogic 24xx/25xx Fibre Channel HBAs supporting NPIV
  • Deployments where firmware reports max_npiv_vports greater than 128

Discovery Timeline

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

Technical Details for CVE-2026-97535

Vulnerability Analysis

The qla2xxx driver uses the VP control IOCB to select a target virtual port by setting one bit in vp_idx_map, a fixed 16-byte (128-bit) array embedded in both vp_ctrl_entry_24xx and vp_ctrl_entry_24xx_ext. The function qla25xx_ctrlvp_iocb() computes map = (vp_index - 1) / 8 and writes to vce->vp_idx_map[map] without verifying that map remains within array bounds.

The variable max_npiv_vports is derived from adapter firmware and only sanitized to a MIN_MULTI_ID_FABRIC-aligned boundary. This allows legitimate values of 191 or 255. The caller qla24xx_control_vp() rejects only indices greater than or equal to max_npiv_vports, leaving values between 128 and 254 unchecked against the IOCB bitmap size.

Adapters reporting the typical 63 or 127 NPIV vport limits are not affected. Systems with firmware exposing higher vport counts are exposed to the out-of-bounds write.

Root Cause

The root cause is missing bounds validation between a firmware-supplied port index and the fixed-size bitmap used by the IOCB structure. The driver trusts max_npiv_vports from firmware as the sole gating constant, ignoring the hard 128-bit layout of vp_idx_map. This is an out-of-bounds write classification.

Attack Vector

Exploitation requires that a vp_index value above 128 reach qla25xx_ctrlvp_iocb(). A compromised or malfunctioning HBA firmware reporting an inflated max_npiv_vports, combined with virtual port allocations in that range, triggers the write. The resulting corruption lands in trailing IOCB fields or the adjacent request-ring slot on the 64-byte layout, enabling kernel memory corruption with potential for denial of service or further escalation.

See the upstream commits for the patched logic: Kernel Git Commit 13354ad, Kernel Git Commit 48a44e1, and Kernel Git Commit 878613ec.

Detection Methods for CVE-2026-97535

Indicators of Compromise

  • Unexpected kernel oops or panic traces referencing qla25xx_ctrlvp_iocb or qla24xx_control_vp
  • KASAN reports flagging out-of-bounds writes within vp_ctrl_entry_24xx structures
  • SCSI request-ring corruption messages or dropped Fibre Channel I/O operations following virtual port creation

Detection Strategies

  • Audit running kernel versions on hosts with QLogic Fibre Channel HBAs against the fixed stable kernel commits
  • Inventory NPIV configurations and flag any virtual port index above 128 in management logs
  • Enable KASAN in test environments to surface the out-of-bounds write during virtual port allocation workflows

Monitoring Recommendations

  • Alert on qla2xxx driver error messages and HBA resets in system logs
  • Monitor Fibre Channel fabric events for NPIV allocations approaching firmware-reported maximums
  • Track kernel crash telemetry and correlate crashes to recent VP control operations

How to Mitigate CVE-2026-97535

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the stable commits as soon as distribution packages are available
  • Restrict NPIV virtual port provisioning to indices below 128 on affected adapters until the patch is applied
  • Validate HBA firmware versions and confirm whether max_npiv_vports exceeds 128 on each host

Patch Information

The fix adds a bounds check in qla24xx_control_vp() to reject any vp_index that cannot be represented in the IOCB bitmap, and introduces a defensive ARRAY_SIZE() guard in qla25xx_ctrlvp_iocb() before the write. The patches are available in the following stable kernel commits: 13354ad, 48a44e1, and 878613ec. Rebuild and reboot into the patched kernel to remediate.

Workarounds

  • Limit NPIV configuration so no virtual port is assigned an index above 128
  • Where feasible, downgrade or reconfigure HBA firmware to report a max_npiv_vports value of 127 or lower
  • Disable NPIV on affected adapters if virtual port functionality is not required

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.