CVE-2025-68741
Unknown Unknown - Not Provided
Use-After-Free Vulnerability in Linux qla2xxx SCSI Driver

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-05-06
AI Q&A
2025-12-24
EPSS Evaluated
2026-05-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 Powered Q&A
Can you explain this vulnerability to me?

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.


How can this vulnerability impact me? :

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.


What immediate steps should I take to mitigate this vulnerability?

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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart