{"id":"CVE-2026-97535","aliases":["CVE-2026-97535"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: qla2xxx: Bound VP index against VP_CTRL IOCB bitmap size","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-25T10:21:34.395Z","modified":"2026-10-30T13:21:06.963Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2853192e154b813fe34a6cbee5e34dfef50d29d0","fixed":"0c73631101e7889c519d4a621cc958f487f8e01a","status":"affected"},{"type":"git","introduced":"2853192e154b813fe34a6cbee5e34dfef50d29d0","fixed":"674d783f2e80d0d7c1c86bf36dc0a09033e704de","status":"affected"},{"type":"git","introduced":"2853192e154b813fe34a6cbee5e34dfef50d29d0","fixed":"c80a0362a0fe548c15a0324b1f61c04b62bb2174","status":"affected"},{"type":"git","introduced":"2853192e154b813fe34a6cbee5e34dfef50d29d0","fixed":"48a44e19746eaa70320a3c2571dcb345192fca72","status":"affected"},{"type":"git","introduced":"2853192e154b813fe34a6cbee5e34dfef50d29d0","fixed":"13354ad251ab009102597a791bc7c4d2265229e1","status":"affected"},{"type":"git","introduced":"2853192e154b813fe34a6cbee5e34dfef50d29d0","fixed":"878613ecb5a36db26859c4fd83daf9283a334fa2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","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/0c73631101e7889c519d4a621cc958f487f8e01a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/674d783f2e80d0d7c1c86bf36dc0a09033e704de","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c80a0362a0fe548c15a0324b1f61c04b62bb2174","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48a44e19746eaa70320a3c2571dcb345192fca72","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13354ad251ab009102597a791bc7c4d2265229e1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/878613ecb5a36db26859c4fd83daf9283a334fa2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97535","url":"https://www.cve.org/CVERecord?id=CVE-2026-97535","licence":"CVE Terms of Use","modified":"2026-10-30T12:37:15.714Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97535","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97535","licence":"Public domain","modified":"2026-10-30T13:21:06.963Z"}],"updatedAt":"2026-11-25T22:59:40.949Z","epss":{"score":0.00212,"percentile":0.12202,"date":"2026-12-01T12:00:22.000Z"}}