{"id":"CVE-2026-97529","aliases":["CVE-2026-97529"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: qla2xxx: Validate BSG request_len before reading vendor_cmd[]","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Validate BSG request_len before reading vendor_cmd[]\n\nThe FC BSG transport allocates job->request via memdup_user() using the\nexact user-supplied request_len. For FC_BSG_HST_VENDOR,\nfc_bsg_host_dispatch() only guarantees request_len covers msgcode and\nvendor_id; it does not account for the vendor_cmd[] flexible array.\n\nqla2xxx then reads the command selector vendor_cmd[0] and, in several\nsub-handlers, vendor_cmd[1]/[2] or structures overlaid on the vendor\ncommand area without verifying request_len. A caller holding\nCAP_SYS_RAWIO can submit a short request whose vendor_id matches the\nhost, triggering out-of-bounds heap reads (KASAN-detectable, and able to\nmis-select a command or panic).\n\nAdd a central guard in qla2x00_process_vendor_specific() so the selector\nis always in bounds, restrict the early vendor_cmd[0] read in\nqla24xx_bsg_request() to sufficiently long vendor messages, and add\nrequest_len checks to the sub-handlers that read further:\nqla24xx_proc_fcp_prio_cfg_cmd(), qla2x00_process_loopback(),\nqla84xx_reset(), qla84xx_updatefw(), qla2x00_read_optrom(),\nqla2x00_update_optrom(), qlafx00_mgmt_cmd() and\nqla28xx_validate_flash_image().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Validate BSG request_len before reading vendor_cmd[]\n\nThe FC BSG transport allocates job->request via memdup_user() using the\nexact user-supplied request_len. For FC_BSG_HST_VENDOR,\nfc_bsg_host_dispatch() only guarantees request_len covers msgcode and\nvendor_id; it does not account for the vendor_cmd[] flexible array.\n\nqla2xxx then reads the command selector vendor_cmd[0] and, in several\nsub-handlers, vendor_cmd[1]/[2] or structures overlaid on the vendor\ncommand area without verifying request_len. A caller holding\nCAP_SYS_RAWIO can submit a short request whose vendor_id matches the\nhost, triggering out-of-bounds heap reads (KASAN-detectable, and able to\nmis-select a command or panic).\n\nAdd a central guard in qla2x00_process_vendor_specific() so the selector\nis always in bounds, restrict the early vendor_cmd[0] read in\nqla24xx_bsg_request() to sufficiently long vendor messages, and add\nrequest_len checks to the sub-handlers that read further:\nqla24xx_proc_fcp_prio_cfg_cmd(), qla2x00_process_loopback(),\nqla84xx_reset(), qla84xx_updatefw(), qla2x00_read_optrom(),\nqla2x00_update_optrom(), qlafx00_mgmt_cmd() and\nqla28xx_validate_flash_image().","source":"cvelist"}],"published":"2026-09-25T10:21:30.733Z","modified":"2026-10-30T13:21:06.280Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"01e0e15c8b3b32e006e5cccac10c8b377ac3d803","fixed":"a0c6842ec825a91693626dbd9a4c54f2b9dc15ea","status":"affected"},{"type":"git","introduced":"01e0e15c8b3b32e006e5cccac10c8b377ac3d803","fixed":"0540676f5fefdff748b8d57a927b143e31dc21fd","status":"affected"},{"type":"git","introduced":"01e0e15c8b3b32e006e5cccac10c8b377ac3d803","fixed":"d3762cc777544a4cbc4635a787e1cfc021e1a615","status":"affected"},{"type":"git","introduced":"01e0e15c8b3b32e006e5cccac10c8b377ac3d803","fixed":"5f33efe04658968b6b3f432f904d5f1f74c12286","status":"affected"},{"type":"git","introduced":"01e0e15c8b3b32e006e5cccac10c8b377ac3d803","fixed":"ef63922d8bdea03de1804af39a6b12212acb1be2","status":"affected"},{"type":"git","introduced":"01e0e15c8b3b32e006e5cccac10c8b377ac3d803","fixed":"740f3458a4798af54aaf8cf63e797d407e8b6d3b","status":"affected"},{"type":"git","introduced":"01e0e15c8b3b32e006e5cccac10c8b377ac3d803","fixed":"f75bff451a2fac5aed82f9641df1e9a42c5a899d","status":"affected"},{"type":"git","introduced":"01e0e15c8b3b32e006e5cccac10c8b377ac3d803","fixed":"4cf38dd9465736141263ebb63375868311a0ec81","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.10","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a0c6842ec825a91693626dbd9a4c54f2b9dc15ea","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0540676f5fefdff748b8d57a927b143e31dc21fd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d3762cc777544a4cbc4635a787e1cfc021e1a615","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f33efe04658968b6b3f432f904d5f1f74c12286","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ef63922d8bdea03de1804af39a6b12212acb1be2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/740f3458a4798af54aaf8cf63e797d407e8b6d3b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f75bff451a2fac5aed82f9641df1e9a42c5a899d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4cf38dd9465736141263ebb63375868311a0ec81","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97529","url":"https://www.cve.org/CVERecord?id=CVE-2026-97529","licence":"CVE Terms of Use","modified":"2026-10-30T12:37:10.411Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97529","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97529","licence":"Public domain","modified":"2026-10-30T13:21:06.280Z"}],"updatedAt":"2026-11-25T22:59:40.947Z","epss":{"score":0.00217,"percentile":0.12914,"date":"2026-12-02T12:00:21.000Z"}}