CVE Catalog

CVE-2025-39841

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.44%

36th percentile - higher than 36% of all known CVEs

Summary

In the lpfc SCSI driver (Linux kernel), a use-after-free window was found in the deferred receive path. The bug was due to incorrect order of freeing the RQ buffer and clearing the context pointer, which could lead to double-free or UAF.

Risk Assessment

The organization is at risk of system crashes, data corruption, or potential arbitrary code execution by an attacker exploiting this vulnerability.

Recommendation

Update the Linux kernel to a version containing the fix for CVE-2025-39841.

Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Fix buffer free/clear order in deferred receive path Fix a use-after-free window by correcting the buffer release sequence in the deferred receive path. The code freed the RQ buffer first and only then cleared the context pointer under the lock. Concurrent paths (e.g., ABTS and the repost path) also inspect and release the same pointer under the lock, so the old order could lead to double-free/UAF. Note that the repost path already uses the correct pattern: detach the pointer under the lock, then free it after dropping the lock. The deferred path should do the same.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS