Description
In the Linux kernel, the following vulnerability has been resolved:

scsi: qla2xxx: Validate BSG request_len before reading vendor_cmd[]

The FC BSG transport allocates job->request via memdup_user() using the
exact user-supplied request_len. For FC_BSG_HST_VENDOR,
fc_bsg_host_dispatch() only guarantees request_len covers msgcode and
vendor_id; it does not account for the vendor_cmd[] flexible array.

qla2xxx then reads the command selector vendor_cmd[0] and, in several
sub-handlers, vendor_cmd[1]/[2] or structures overlaid on the vendor
command area without verifying request_len. A caller holding
CAP_SYS_RAWIO can submit a short request whose vendor_id matches the
host, triggering out-of-bounds heap reads (KASAN-detectable, and able to
mis-select a command or panic).

Add a central guard in qla2x00_process_vendor_specific() so the selector
is always in bounds, restrict the early vendor_cmd[0] read in
qla24xx_bsg_request() to sufficiently long vendor messages, and add
request_len checks to the sub-handlers that read further:
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().
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Kernel out-of-bounds read and potential panic
Action: Apply Patch
AI Analysis

Impact

The Linux kernel’s QLA2xxx SCSI driver does not verify the length of a user‑supplied SCSI generic (SG) request before accessing elements of the vendor_cmd flexible array. An attacker with CAP_SYS_RAWIO can craft a short request that satisfies the initial checks yet triggers out-of-bounds heap reads. The driver may read vendor_cmd[1] or [2] or larger structures without bounds validation, causing KASAN‑detectable memory corruption, kernel panic, or the ability to mis‑select a command. The weakness is a classic input‑validation error (CWE-125).

Affected Systems

All Linux kernel releases that include the QLA2xxx driver (qla24xx, qla28xx, qla84xx families) before the patch that adds request_len checks in qla2x00_process_vendor_specific() and related handlers. The specific kernel version is not enumerated; any build prior to the commit that implements these checks is vulnerable.

Risk and Exploitability

The exploit requires local, privileged access (CAP_SYS_RAWIO) to send crafted SG vendor commands, making the attack vector effectively local. The CVSS score of 5.5 reflects moderate severity, while the EPSS of less than 1% indicates a very low probability of exploitation in the wild. The vulnerability is not listed in CISA’s KEV catalog. If exploited, the attacker can cause kernel out-of-bounds reads and potentially a crash or privilege escalation if they can influence the vendor command data.

Generated by OpenCVE AI on October 1, 2026 at 11:48 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to include the QLA2xxx vendor‑command length validation patch (commits 4cf38dd, 740f345, f75bff4).
  • If a custom kernel module is compiled from older source, recompile it against a kernel that contains the patched driver code.
  • Restrict CAP_SYS_RAWIO to trusted users only by applying ACLs or capabilities to /dev/sg* device files, limiting who can issue SCSI generic vendor commands.

Generated by OpenCVE AI on October 1, 2026 at 11:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 03 Oct 2026 11:15:00 +0000


Thu, 01 Oct 2026 10:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-20

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sat, 26 Sep 2026 00:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-20

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Validate BSG request_len before reading vendor_cmd[] The FC BSG transport allocates job->request via memdup_user() using the exact user-supplied request_len. For FC_BSG_HST_VENDOR, fc_bsg_host_dispatch() only guarantees request_len covers msgcode and vendor_id; it does not account for the vendor_cmd[] flexible array. qla2xxx then reads the command selector vendor_cmd[0] and, in several sub-handlers, vendor_cmd[1]/[2] or structures overlaid on the vendor command area without verifying request_len. A caller holding CAP_SYS_RAWIO can submit a short request whose vendor_id matches the host, triggering out-of-bounds heap reads (KASAN-detectable, and able to mis-select a command or panic). Add a central guard in qla2x00_process_vendor_specific() so the selector is always in bounds, restrict the early vendor_cmd[0] read in qla24xx_bsg_request() to sufficiently long vendor messages, and add request_len checks to the sub-handlers that read further: 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().
Title scsi: qla2xxx: Validate BSG request_len before reading vendor_cmd[]
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-03T10:59:21.533Z

Reserved: 2026-09-24T16:01:01.153Z

Link: CVE-2026-97529

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:03.087

Modified: 2026-10-03T11:18:01.733

Link: CVE-2026-97529

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-97529 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T12:00:06Z

Weaknesses