scsi: qla2xxx: Sanitize payload size to prevent member overflow
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Sanitize payload size to prevent member overflow In qla27xx_copy_fpin_pkt() and qla27xx_copy_multiple_pkt(), the frame_size reported by firmware is used to calculate the copy length into item->iocb. However, the iocb member is defined as a fixed-size 64-byte array within struct purex_item. If the reported frame_size exceeds 64 bytes, subsequent memcpy calls will overflow the iocb member boundary. While extra memory might be allocated, this cross-member write is unsafe and triggers warnings under CONFIG_FORTIFY_SOURCE. Fix this by capping total_bytes to the size of the iocb member (64 bytes) before allocation and copying. This ensures all copies remain within the bounds of the destination structure member.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.68, 6.18.8, 6.6.122
- CVEs
- CVE-2026-23059
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 21:18 UTC · Revision 1
Source evidence
scsi: qla2xxx: Sanitize payload size to prevent member overflow
core-osv · Original sourcePublished 4 Feb 2026, 16:07 UTC
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Sanitize payload size to prevent member overflow In qla27xx_copy_fpin_pkt() and qla27xx_copy_multiple_pkt(), the frame_size reported by firmware is used to calculate the copy length into item->iocb. However, the iocb member is defined as a fixed-size 64-byte array within struct purex_item. If the reported frame_size exceeds 64 bytes, subsequent memcpy calls will overflow the iocb member boundary. While extra memory might be allocated, this cross-member write is unsafe and triggers warnings under CONFIG_FORTIFY_SOURCE. Fix this by capping total_bytes to the size of the iocb member (64 bytes) before allocation and copying. This ensures all copies remain within the bounds of the destination structure member.
osv:CVE-2026-23059
Kernel
Fixed versions: 6.6.122, 6.12.68, 6.18.8
Complete source record
{
"id": "cf3240b3587fefa62ec258ca27973087bd51f7cece2dd72786a6f737f21fbb14",
"url": "https://osv.dev/vulnerability/CVE-2026-23059",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "scsi: qla2xxx: Sanitize payload size to prevent member overflow",
"summary": "In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Sanitize payload size to prevent member overflow In qla27xx_copy_fpin_pkt() and qla27xx_copy_multiple_pkt(), the frame_size reported by firmware is used to calculate the copy length into item->iocb. However, the iocb member is defined as a fixed-size 64-byte array within struct purex_item. If the reported frame_size exceeds 64 bytes, subsequent memcpy calls will overflow the iocb member boundary. While extra memory might be allocated, this cross-member write is unsafe and triggers warnings under CONFIG_FORTIFY_SOURCE. Fix this by capping total_bytes to the size of the iocb member (64 bytes) before allocation and copying. This ensures all copies remain within the bounds of the destination structure member.",
"evidence": "osv:CVE-2026-23059",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.122",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.68",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-23059",
"aliases": [
"CVE-2026-23059"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "875386b98857822b77ac7f95bdf367b70af5b78c"
},
{
"fixed": "408bfa8d70f79ac696cec1bdbdfb3bf43a02e6d0"
},
{
"fixed": "1922468a4a80424e5a69f7ba50adcee37f4722e9"
},
{
"fixed": "aa14451fa5d5f2de919384c637e2a8c604e1a1fe"
},
{
"fixed": "19bc5f2a6962dfaa0e32d0e0bc2271993d85d414"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23059.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.0"
},
{
"fixed": "6.6.122"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.68"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23059.json"
}
}
],
"modified": "2026-10-28T02:30:23.568914463Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1922468a4a80424e5a69f7ba50adcee37f4722e9",
"https://git.kernel.org/stable/c/19bc5f2a6962dfaa0e32d0e0bc2271993d85d414",
"https://git.kernel.org/stable/c/408bfa8d70f79ac696cec1bdbdfb3bf43a02e6d0",
"https://git.kernel.org/stable/c/aa14451fa5d5f2de919384c637e2a8c604e1a1fe",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23059.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-23059",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23059.json"
}
},
"related_cves": [
{
"value": "CVE-2026-23059",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 490193,
"published_at": "2026-02-04T16:07:42.15+00:00"
}