CVE-2025-68741
Unknown Unknown - Not Provided

Use-After-Free Vulnerability in Linux qla2xxx SCSI Driver

Vulnerability report for CVE-2025-68741, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-12-24

Last updated on: 2025-12-24

Assigner: kernel.org

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-12-24
Last Modified
2025-12-24
Generated
2026-07-06
AI Q&A
2025-12-24
EPSS Evaluated
2026-07-05
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel's qla2xxx driver involves improper freeing of a 'purex' item. Specifically, an item allocated either from a pre-allocated per-adapter pool or dynamically via kzalloc() is incorrectly freed using kfree() in an error handling path. Using kfree() on items from the pre-allocated pool causes memory corruption. The fix involves using the correct deallocation function, qla24xx_free_purex_item(), which properly handles both allocation types.

Impact Analysis

This vulnerability can lead to memory corruption in the Linux kernel when the qla2xxx driver improperly frees memory. Memory corruption can cause system instability, crashes, or potentially allow attackers to execute arbitrary code or escalate privileges, depending on exploitation conditions.

Mitigation Strategies

To mitigate this vulnerability, update the Linux kernel to a version where the qla2xxx driver has been fixed to use the correct deallocation function qla24xx_free_purex_item() instead of kfree() for purex items. This prevents memory corruption caused by improper freeing of pre-allocated items.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-68741. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart