{"id":"CVE-2026-23059","state":"PUBLISHED","title":"scsi: qla2xxx: Sanitize payload size to prevent member overflow","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Sanitize payload size to prevent member overflow\n\nIn qla27xx_copy_fpin_pkt() and qla27xx_copy_multiple_pkt(), the frame_size\nreported by firmware is used to calculate the copy length into\nitem->iocb. However, the iocb member is defined as a fixed-size 64-byte\narray within struct purex_item.\n\nIf the reported frame_size exceeds 64 bytes, subsequent memcpy calls will\noverflow the iocb member boundary. While extra memory might be allocated,\nthis cross-member write is unsafe and triggers warnings under\nCONFIG_FORTIFY_SOURCE.\n\nFix this by capping total_bytes to the size of the iocb member (64 bytes)\nbefore allocation and copying. This ensures all copies remain within the\nbounds of the destination structure member.","publishedAt":"2026-02-04T16:07:42.150Z","updatedAt":"2026-05-11T21:59:12.428Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"875386b98857822b77ac7f95bdf367b70af5b78c","status":"affected","lessThan":"408bfa8d70f79ac696cec1bdbdfb3bf43a02e6d0","versionType":"git"},{"version":"875386b98857822b77ac7f95bdf367b70af5b78c","status":"affected","lessThan":"1922468a4a80424e5a69f7ba50adcee37f4722e9","versionType":"git"},{"version":"875386b98857822b77ac7f95bdf367b70af5b78c","status":"affected","lessThan":"aa14451fa5d5f2de919384c637e2a8c604e1a1fe","versionType":"git"},{"version":"875386b98857822b77ac7f95bdf367b70af5b78c","status":"affected","lessThan":"19bc5f2a6962dfaa0e32d0e0bc2271993d85d414","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/qla2xxx/qla_isr.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.122","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.68","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.8","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","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_isr.c"]}],"references":["https://git.kernel.org/stable/c/408bfa8d70f79ac696cec1bdbdfb3bf43a02e6d0","https://git.kernel.org/stable/c/1922468a4a80424e5a69f7ba50adcee37f4722e9","https://git.kernel.org/stable/c/aa14451fa5d5f2de919384c637e2a8c604e1a1fe","https://git.kernel.org/stable/c/19bc5f2a6962dfaa0e32d0e0bc2271993d85d414"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23059.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23059","state":"PUBLISHED","datePublished":"2026-02-04T16:07:42.150Z","dateUpdated":"2026-05-11T21:59:12.428Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:37:45.952Z"},"containers":{"cna":{"title":"scsi: qla2xxx: Sanitize payload size to prevent member overflow","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Sanitize payload size to prevent member overflow\n\nIn qla27xx_copy_fpin_pkt() and qla27xx_copy_multiple_pkt(), the frame_size\nreported by firmware is used to calculate the copy length into\nitem->iocb. However, the iocb member is defined as a fixed-size 64-byte\narray within struct purex_item.\n\nIf the reported frame_size exceeds 64 bytes, subsequent memcpy calls will\noverflow the iocb member boundary. While extra memory might be allocated,\nthis cross-member write is unsafe and triggers warnings under\nCONFIG_FORTIFY_SOURCE.\n\nFix this by capping total_bytes to the size of the iocb member (64 bytes)\nbefore allocation and copying. This ensures all copies remain within the\nbounds of the destination structure member."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"875386b98857822b77ac7f95bdf367b70af5b78c","status":"affected","lessThan":"408bfa8d70f79ac696cec1bdbdfb3bf43a02e6d0","versionType":"git"},{"version":"875386b98857822b77ac7f95bdf367b70af5b78c","status":"affected","lessThan":"1922468a4a80424e5a69f7ba50adcee37f4722e9","versionType":"git"},{"version":"875386b98857822b77ac7f95bdf367b70af5b78c","status":"affected","lessThan":"aa14451fa5d5f2de919384c637e2a8c604e1a1fe","versionType":"git"},{"version":"875386b98857822b77ac7f95bdf367b70af5b78c","status":"affected","lessThan":"19bc5f2a6962dfaa0e32d0e0bc2271993d85d414","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/qla2xxx/qla_isr.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.122","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.68","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.8","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","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_isr.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/408bfa8d70f79ac696cec1bdbdfb3bf43a02e6d0"},{"url":"https://git.kernel.org/stable/c/1922468a4a80424e5a69f7ba50adcee37f4722e9"},{"url":"https://git.kernel.org/stable/c/aa14451fa5d5f2de919384c637e2a8c604e1a1fe"},{"url":"https://git.kernel.org/stable/c/19bc5f2a6962dfaa0e32d0e0bc2271993d85d414"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:59:12.428Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.122"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12.68"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.18.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}