CVE-2026-23059

Source
https://cve.org/CVERecord?id=CVE-2026-23059
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-23059.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-23059
Downstream
Published
2026-02-04T16:07:42.150Z
Modified
2026-03-12T04:34:50.253968Z
Summary
scsi: qla2xxx: Sanitize payload size to prevent member overflow
Details

In the Linux kernel, the following vulnerability has been resolved:

scsi: qla2xxx: Sanitize payload size to prevent member overflow

In qla27xxcopyfpinpkt() and qla27xxcopymultiplepkt(), the framesize 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 purexitem.

If the reported framesize 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 CONFIGFORTIFY_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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23059.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
875386b98857822b77ac7f95bdf367b70af5b78c
Fixed
408bfa8d70f79ac696cec1bdbdfb3bf43a02e6d0
Fixed
1922468a4a80424e5a69f7ba50adcee37f4722e9
Fixed
aa14451fa5d5f2de919384c637e2a8c604e1a1fe
Fixed
19bc5f2a6962dfaa0e32d0e0bc2271993d85d414

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-23059.json"

Linux / Kernel

Package

Name
Kernel

Affected 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

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-23059.json"