{"id":"CVE-2025-68741","aliases":["CVE-2025-68741"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: qla2xxx: Fix improper freeing of purex item","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Fix improper freeing of purex item\n\nIn qla2xxx_process_purls_iocb(), an item is allocated via\nqla27xx_copy_multiple_pkt(), which internally calls\nqla24xx_alloc_purex_item().\n\nThe qla24xx_alloc_purex_item() function may return a pre-allocated item\nfrom a per-adapter pool for small allocations, instead of dynamically\nallocating memory with kzalloc().\n\nAn error handling path in qla2xxx_process_purls_iocb() incorrectly uses\nkfree() to release the item. If the item was from the pre-allocated\npool, calling kfree() on it is a bug that can lead to memory corruption.\n\nFix this by using the correct deallocation function,\nqla24xx_free_purex_item(), which properly handles both dynamically\nallocated and pre-allocated items.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Fix improper freeing of purex item\n\nIn qla2xxx_process_purls_iocb(), an item is allocated via\nqla27xx_copy_multiple_pkt(), which internally calls\nqla24xx_alloc_purex_item().\n\nThe qla24xx_alloc_purex_item() function may return a pre-allocated item\nfrom a per-adapter pool for small allocations, instead of dynamically\nallocating memory with kzalloc().\n\nAn error handling path in qla2xxx_process_purls_iocb() incorrectly uses\nkfree() to release the item. If the item was from the pre-allocated\npool, calling kfree() on it is a bug that can lead to memory corruption.\n\nFix this by using the correct deallocation function,\nqla24xx_free_purex_item(), which properly handles both dynamically\nallocated and pre-allocated items.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nscsi: qla2xxx: Corrección de la liberación incorrecta de un elemento purex\n\nEn qla2xxx_process_purls_iocb(), se asigna un elemento a través de qla27xx_copy_multiple_pkt(), que internamente llama a qla24xx_alloc_purex_item().\n\nLa función qla24xx_alloc_purex_item() puede devolver un elemento preasignado de un pool por adaptador para asignaciones pequeñas, en lugar de asignar memoria dinámicamente con kzalloc().\n\nUna ruta de manejo de errores en qla2xxx_process_purls_iocb() usa incorrectamente kfree() para liberar el elemento. Si el elemento provenía del pool preasignado, llamar a kfree() sobre él es un error que puede llevar a corrupción de memoria.\n\nSolucione esto usando la función de desasignación correcta, qla24xx_free_purex_item(), que maneja correctamente tanto los elementos asignados dinámicamente como los preasignados.","source":"nvd"}],"published":"2025-12-24T12:09:38.655Z","modified":"2026-10-13T10:10:00.193Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"875386b98857822b77ac7f95bdf367b70af5b78c","fixed":"4bccd506a1f1ab01d1f45b2a3effff6bedc73cf9","status":"affected"},{"type":"git","introduced":"875386b98857822b77ac7f95bdf367b70af5b78c","fixed":"8e9f0a0717ba31d5842721627ade1e62d7aec012","status":"affected"},{"type":"git","introduced":"875386b98857822b77ac7f95bdf367b70af5b78c","fixed":"cfe3e2f768d248fd3d965d561d0768a56dd0b9f8","status":"affected"},{"type":"git","introduced":"875386b98857822b77ac7f95bdf367b70af5b78c","fixed":"5fa1c8226b4532ad7011d295d3ab4ad45df105ae","status":"affected"},{"type":"git","introduced":"875386b98857822b77ac7f95bdf367b70af5b78c","fixed":"78b1a242fe612a755f2158fd206ee6bb577d18ca","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.120","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.63","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.13","lastAffected":"6.17.*","status":"unaffected"},{"type":"semver","introduced":"6.18.2","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/4bccd506a1f1ab01d1f45b2a3effff6bedc73cf9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e9f0a0717ba31d5842721627ade1e62d7aec012","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cfe3e2f768d248fd3d965d561d0768a56dd0b9f8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5fa1c8226b4532ad7011d295d3ab4ad45df105ae","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/78b1a242fe612a755f2158fd206ee6bb577d18ca","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-16T19:31:58.802Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68741","url":"https://www.cve.org/CVERecord?id=CVE-2025-68741","licence":"CVE Terms of Use","modified":"2026-08-05T12:11:13.586Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68741","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68741","licence":"Public domain","modified":"2026-10-13T10:10:00.193Z"}],"updatedAt":"2026-11-25T22:59:09.904Z","epss":{"score":0.00461,"percentile":0.41662,"date":"2026-12-01T12:00:22.000Z"}}