CVE-2026-97529

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

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().

Key facts

Published
25 Sep 2026
Last changed
30 Oct 2026
Assigned by
Linux
EPSS
0.217% likely to be exploited in the next 30 days, higher than 12.261% of CVEs (scores for 17 Nov 2026)

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
LinuxLinux
  • Default status: unaffected
  • 01e0e15c8b3b32e006e5cccac10c8b377ac3d803 up to but excluding a0c6842ec825a91693626dbd9a4c54f2b9dc15ea (affected)
  • 01e0e15c8b3b32e006e5cccac10c8b377ac3d803 up to but excluding 0540676f5fefdff748b8d57a927b143e31dc21fd (affected)
  • 01e0e15c8b3b32e006e5cccac10c8b377ac3d803 up to but excluding d3762cc777544a4cbc4635a787e1cfc021e1a615 (affected)
  • 01e0e15c8b3b32e006e5cccac10c8b377ac3d803 up to but excluding 5f33efe04658968b6b3f432f904d5f1f74c12286 (affected)
  • 01e0e15c8b3b32e006e5cccac10c8b377ac3d803 up to but excluding ef63922d8bdea03de1804af39a6b12212acb1be2 (affected)
  • 01e0e15c8b3b32e006e5cccac10c8b377ac3d803 up to but excluding 740f3458a4798af54aaf8cf63e797d407e8b6d3b (affected)
  • 01e0e15c8b3b32e006e5cccac10c8b377ac3d803 up to but excluding f75bff451a2fac5aed82f9641df1e9a42c5a899d (affected)
  • 01e0e15c8b3b32e006e5cccac10c8b377ac3d803 up to but excluding 4cf38dd9465736141263ebb63375868311a0ec81 (affected)
LinuxLinux
  • Default status: affected
  • 4.10 (affected)
  • 0 up to but excluding 4.10 (unaffected)
  • 5.10.273 up to and including 5.10.* (unaffected)
  • 5.15.224 up to and including 5.15.* (unaffected)
  • 6.1.191 up to and including 6.1.* (unaffected)
  • 6.6.160 up to and including 6.6.* (unaffected)
  • 6.12.112 up to and including 6.12.* (unaffected)
  • 6.18.53 up to and including 6.18.* (unaffected)
  • 7.2.7 up to and including 7.2.* (unaffected)
  • 7.3 up to and including * (unaffected)

Timeline

  1. 25 Sep 2026 Published

References