{"id":"CVE-2026-97535","state":"PUBLISHED","title":"scsi: qla2xxx: Bound VP index against VP_CTRL IOCB bitmap size","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Bound VP index against VP_CTRL IOCB bitmap size\n\nThe VP control IOCB selects its target virtual port by setting one bit\nin vp_idx_map, a fixed 16-byte (128-bit) array in both\nvp_ctrl_entry_24xx and vp_ctrl_entry_24xx_ext. qla25xx_ctrlvp_iocb()\ncomputes map = (vp_index - 1) / 8 and writes vce->vp_idx_map[map]\nwithout checking that map stays within the array.\n\nmax_npiv_vports is taken from firmware and only sanitized to a\nMIN_MULTI_ID_FABRIC-aligned boundary, so it can legitimately be 191 or\n255, and qla24xx_control_vp() only rejects vp_index >= max_npiv_vports.\nA vp_index above 128 therefore yields map >= 16 and an out-of-bounds\nwrite of up to 16 bytes past vp_idx_map, corrupting the trailing IOCB\nfields (or the adjacent request-ring slot on the 64-byte layout).\n\nReject a vp_index that cannot be represented in the IOCB bitmap in\nqla24xx_control_vp(), and add a defensive ARRAY_SIZE() guard in\nqla25xx_ctrlvp_iocb() before the write. Adapters that report the usual\n63 or 127 NPIV vports are unaffected.","publishedAt":"2026-09-25T10:21:34.395Z","updatedAt":"2026-10-30T12:37:15.714Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"0c73631101e7889c519d4a621cc958f487f8e01a","versionType":"git"},{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"674d783f2e80d0d7c1c86bf36dc0a09033e704de","versionType":"git"},{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"c80a0362a0fe548c15a0324b1f61c04b62bb2174","versionType":"git"},{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"48a44e19746eaa70320a3c2571dcb345192fca72","versionType":"git"},{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"13354ad251ab009102597a791bc7c4d2265229e1","versionType":"git"},{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"878613ecb5a36db26859c4fd83daf9283a334fa2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/qla2xxx/qla_iocb.c","drivers/scsi/qla2xxx/qla_mid.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.16","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/qla2xxx/qla_iocb.c","drivers/scsi/qla2xxx/qla_mid.c"]}],"references":["https://git.kernel.org/stable/c/0c73631101e7889c519d4a621cc958f487f8e01a","https://git.kernel.org/stable/c/674d783f2e80d0d7c1c86bf36dc0a09033e704de","https://git.kernel.org/stable/c/c80a0362a0fe548c15a0324b1f61c04b62bb2174","https://git.kernel.org/stable/c/48a44e19746eaa70320a3c2571dcb345192fca72","https://git.kernel.org/stable/c/13354ad251ab009102597a791bc7c4d2265229e1","https://git.kernel.org/stable/c/878613ecb5a36db26859c4fd83daf9283a334fa2"],"weaknesses":[],"ingestedAt":"2026-10-30T12:56:04.490Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/97xxx/CVE-2026-97535.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-97535","state":"PUBLISHED","datePublished":"2026-09-25T10:21:34.395Z","dateUpdated":"2026-10-30T12:37:15.714Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-24T16:01:01.153Z"},"containers":{"cna":{"title":"scsi: qla2xxx: Bound VP index against VP_CTRL IOCB bitmap size","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Bound VP index against VP_CTRL IOCB bitmap size\n\nThe VP control IOCB selects its target virtual port by setting one bit\nin vp_idx_map, a fixed 16-byte (128-bit) array in both\nvp_ctrl_entry_24xx and vp_ctrl_entry_24xx_ext. qla25xx_ctrlvp_iocb()\ncomputes map = (vp_index - 1) / 8 and writes vce->vp_idx_map[map]\nwithout checking that map stays within the array.\n\nmax_npiv_vports is taken from firmware and only sanitized to a\nMIN_MULTI_ID_FABRIC-aligned boundary, so it can legitimately be 191 or\n255, and qla24xx_control_vp() only rejects vp_index >= max_npiv_vports.\nA vp_index above 128 therefore yields map >= 16 and an out-of-bounds\nwrite of up to 16 bytes past vp_idx_map, corrupting the trailing IOCB\nfields (or the adjacent request-ring slot on the 64-byte layout).\n\nReject a vp_index that cannot be represented in the IOCB bitmap in\nqla24xx_control_vp(), and add a defensive ARRAY_SIZE() guard in\nqla25xx_ctrlvp_iocb() before the write. Adapters that report the usual\n63 or 127 NPIV vports are unaffected."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"0c73631101e7889c519d4a621cc958f487f8e01a","versionType":"git"},{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"674d783f2e80d0d7c1c86bf36dc0a09033e704de","versionType":"git"},{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"c80a0362a0fe548c15a0324b1f61c04b62bb2174","versionType":"git"},{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"48a44e19746eaa70320a3c2571dcb345192fca72","versionType":"git"},{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"13354ad251ab009102597a791bc7c4d2265229e1","versionType":"git"},{"version":"2853192e154b813fe34a6cbee5e34dfef50d29d0","status":"affected","lessThan":"878613ecb5a36db26859c4fd83daf9283a334fa2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/qla2xxx/qla_iocb.c","drivers/scsi/qla2xxx/qla_mid.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.16","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/qla2xxx/qla_iocb.c","drivers/scsi/qla2xxx/qla_mid.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0c73631101e7889c519d4a621cc958f487f8e01a"},{"url":"https://git.kernel.org/stable/c/674d783f2e80d0d7c1c86bf36dc0a09033e704de"},{"url":"https://git.kernel.org/stable/c/c80a0362a0fe548c15a0324b1f61c04b62bb2174"},{"url":"https://git.kernel.org/stable/c/48a44e19746eaa70320a3c2571dcb345192fca72"},{"url":"https://git.kernel.org/stable/c/13354ad251ab009102597a791bc7c4d2265229e1"},{"url":"https://git.kernel.org/stable/c/878613ecb5a36db26859c4fd83daf9283a334fa2"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:37:15.714Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.12.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"6.18.53"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"7.2.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}