Security Vulnerability Report
中文
CVE-2026-43414 CVSS 9.8 CRITICAL

CVE-2026-43414

Published: 2026-05-08 15:16:53
Last Modified: 2026-05-11 08:16:14
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Completely fix fcport double free In qla24xx_els_dcmd_iocb() sp->free is set to qla2x00_els_dcmd_sp_free(). When an error happens, this function is called by qla2x00_sp_release(), when kref_put() releases the first and the last reference. qla2x00_els_dcmd_sp_free() frees fcport by calling qla2x00_free_fcport(). Doing it one more time after kref_put() is a bad idea.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Linux Kernel (qla2xxx driver)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * Conceptual Proof of Concept for CVE-2026-43414 * This code demonstrates the logic error leading to a double free. * Exploiting this in a real scenario requires specific hardware (QLogic HBA) * and the ability to trigger the error path in qla24xx_els_dcmd_iocb. */ #include <stdio.h> #include <stdlib.h> // Simulating the structures involved struct fcport { int id; char data[10]; }; void qla2x00_free_fcport(struct fcport *fp) { printf("[*] Freeing fcport structure at %p\n", (void*)fp); free(fp); } void qla2x00_els_dcmd_sp_free(struct fcport *fp) { printf("[*] Inside qla2x00_els_dcmd_sp_free callback\n"); qla2x00_free_fcport(fp); } // Simulated kref_put logic void kref_put(struct fcport *fp, void (*release)(struct fcport*)) { printf("[*] kref_put called, releasing last reference\n"); release(fp); } void vulnerable_function() { struct fcport *fcport = (struct fcport*)malloc(sizeof(struct fcport)); if (!fcport) return; fcport->id = 0xDEAD; printf("[+] Allocated fcport at %p\n", (void*)fcport); // Simulate the error path printf("[!] Simulating error condition in qla24xx_els_dcmd_iocb...\n"); // Step 1: kref_put triggers the callback which frees fcport kref_put(fcport, qla2x00_els_dcmd_sp_free); // Step 2: The vulnerable code calls free again (Double Free) printf("[!] BUG: Calling qla2x00_free_fcport again after kref_put...\n"); qla2x00_free_fcport(fcport); // Double Free happens here } int main() { vulnerable_function(); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-43414", "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "published": "2026-05-08T15:16:53.353", "lastModified": "2026-05-11T08:16:13.707", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Completely fix fcport double free\n\nIn qla24xx_els_dcmd_iocb() sp->free is set to qla2x00_els_dcmd_sp_free().\nWhen an error happens, this function is called by qla2x00_sp_release(),\nwhen kref_put() releases the first and the last reference.\n\nqla2x00_els_dcmd_sp_free() frees fcport by calling qla2x00_free_fcport().\nDoing it one more time after kref_put() is a bad idea."}], "metrics": {"cvssMetricV31": [{"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "references": [{"url": "https://git.kernel.org/stable/c/c0b7da13a04bd70ef6070bfb9ea85f582294560a", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"}, {"url": "https://git.kernel.org/stable/c/d48ea85463f5b34f7b92ea0a13eddf1ab993da7b", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}}