scsi: qla2xxx: Fix improper freeing of purex item
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Fix improper freeing of purex item In qla2xxx_process_purls_iocb(), an item is allocated via qla27xx_copy_multiple_pkt(), which internally calls qla24xx_alloc_purex_item(). The qla24xx_alloc_purex_item() function may return a pre-allocated item from a per-adapter pool for small allocations, instead of dynamically allocating memory with kzalloc(). An error handling path in qla2xxx_process_purls_iocb() incorrectly uses kfree() to release the item. If the item was from the pre-allocated pool, calling kfree() on it is a bug that can lead to memory corruption. Fix this by using the correct deallocation function, qla24xx_free_purex_item(), which properly handles both dynamically allocated and pre-allocated items.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.63, 6.17.13, 6.18.2, 6.6.120
- CVEs
- CVE-2025-68741
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:39 UTC · Revision 1
Source evidence
scsi: qla2xxx: Fix improper freeing of purex item
core-osv · Original sourcePublished 24 Dec 2025, 12:09 UTC
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Fix improper freeing of purex item In qla2xxx_process_purls_iocb(), an item is allocated via qla27xx_copy_multiple_pkt(), which internally calls qla24xx_alloc_purex_item(). The qla24xx_alloc_purex_item() function may return a pre-allocated item from a per-adapter pool for small allocations, instead of dynamically allocating memory with kzalloc(). An error handling path in qla2xxx_process_purls_iocb() incorrectly uses kfree() to release the item. If the item was from the pre-allocated pool, calling kfree() on it is a bug that can lead to memory corruption. Fix this by using the correct deallocation function, qla24xx_free_purex_item(), which properly handles both dynamically allocated and pre-allocated items.
osv:CVE-2025-68741
Kernel
Fixed versions: 6.6.120, 6.12.63, 6.17.13, 6.18.2
Complete source record
{
"id": "63edd945fc415ced2971839a9fe586aaebbb4964b843b0a1f077a30cc53a6792",
"url": "https://osv.dev/vulnerability/CVE-2025-68741",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "scsi: qla2xxx: Fix improper freeing of purex item",
"summary": "In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Fix improper freeing of purex item In qla2xxx_process_purls_iocb(), an item is allocated via qla27xx_copy_multiple_pkt(), which internally calls qla24xx_alloc_purex_item(). The qla24xx_alloc_purex_item() function may return a pre-allocated item from a per-adapter pool for small allocations, instead of dynamically allocating memory with kzalloc(). An error handling path in qla2xxx_process_purls_iocb() incorrectly uses kfree() to release the item. If the item was from the pre-allocated pool, calling kfree() on it is a bug that can lead to memory corruption. Fix this by using the correct deallocation function, qla24xx_free_purex_item(), which properly handles both dynamically allocated and pre-allocated items.",
"evidence": "osv:CVE-2025-68741",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.120",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.63",
"evidence": "/affected/1/ranges"
},
{
"value": "6.17.13",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "CVE-2025-68741",
"aliases": [
"CVE-2025-68741"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "875386b98857822b77ac7f95bdf367b70af5b78c"
},
{
"fixed": "4bccd506a1f1ab01d1f45b2a3effff6bedc73cf9"
},
{
"fixed": "8e9f0a0717ba31d5842721627ade1e62d7aec012"
},
{
"fixed": "cfe3e2f768d248fd3d965d561d0768a56dd0b9f8"
},
{
"fixed": "5fa1c8226b4532ad7011d295d3ab4ad45df105ae"
},
{
"fixed": "78b1a242fe612a755f2158fd206ee6bb577d18ca"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68741.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.0"
},
{
"fixed": "6.6.120"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.63"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.17.13"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.18.0"
},
{
"fixed": "6.18.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68741.json"
}
}
],
"modified": "2026-10-28T02:30:30.400979628Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/4bccd506a1f1ab01d1f45b2a3effff6bedc73cf9",
"https://git.kernel.org/stable/c/5fa1c8226b4532ad7011d295d3ab4ad45df105ae",
"https://git.kernel.org/stable/c/78b1a242fe612a755f2158fd206ee6bb577d18ca",
"https://git.kernel.org/stable/c/8e9f0a0717ba31d5842721627ade1e62d7aec012",
"https://git.kernel.org/stable/c/cfe3e2f768d248fd3d965d561d0768a56dd0b9f8",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68741.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-68741",
"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/2025/68xxx/CVE-2025-68741.json"
}
},
"related_cves": [
{
"value": "CVE-2025-68741",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496912,
"published_at": "2025-12-24T12:09:38.655+00:00"
}