{"id":"CVE-2026-23059","aliases":["CVE-2026-23059"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: qla2xxx: Sanitize payload size to prevent member overflow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nscsi: qla2xxx: Sanitizar el tamaño de la carga útil para prevenir el desbordamiento de miembro\n\nEn qla27xx_copy_fpin_pkt() y qla27xx_copy_multiple_pkt(), el frame_size reportado por el firmware se utiliza para calcular la longitud de la copia en item-&gt;iocb. Sin embargo, el miembro iocb se define como un array de tamaño fijo de 64 bytes dentro de la estructura purex_item.\n\nSi el frame_size reportado excede los 64 bytes, las llamadas subsiguientes a memcpy desbordarán el límite del miembro iocb. Aunque se podría asignar memoria adicional, esta escritura entre miembros es insegura y activa advertencias bajo CONFIG_FORTIFY_SOURCE.\n\nSolucione esto limitando total_bytes al tamaño del miembro iocb (64 bytes) antes de la asignación y la copia. Esto asegura que todas las copias permanezcan dentro de los límites del miembro de la estructura de destino.","source":"nvd"}],"published":"2026-02-04T16:07:42.150Z","modified":"2026-06-17T10:20:47.323Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"875386b98857822b77ac7f95bdf367b70af5b78c","fixed":"408bfa8d70f79ac696cec1bdbdfb3bf43a02e6d0","status":"affected"},{"type":"git","introduced":"875386b98857822b77ac7f95bdf367b70af5b78c","fixed":"1922468a4a80424e5a69f7ba50adcee37f4722e9","status":"affected"},{"type":"git","introduced":"875386b98857822b77ac7f95bdf367b70af5b78c","fixed":"aa14451fa5d5f2de919384c637e2a8c604e1a1fe","status":"affected"},{"type":"git","introduced":"875386b98857822b77ac7f95bdf367b70af5b78c","fixed":"19bc5f2a6962dfaa0e32d0e0bc2271993d85d414","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.122","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.68","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.8","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","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/408bfa8d70f79ac696cec1bdbdfb3bf43a02e6d0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1922468a4a80424e5a69f7ba50adcee37f4722e9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aa14451fa5d5f2de919384c637e2a8c604e1a1fe","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19bc5f2a6962dfaa0e32d0e0bc2271993d85d414","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23059","url":"https://www.cve.org/CVERecord?id=CVE-2026-23059","licence":"CVE Terms of Use","modified":"2026-05-11T21:59:12.428Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23059","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23059","licence":"Public domain","modified":"2026-06-17T10:20:47.323Z"}],"updatedAt":"2026-11-25T22:59:13.457Z","epss":{"score":0.00201,"percentile":0.10567,"date":"2026-12-01T12:00:22.000Z"}}