CVE Wiki Pixee · CVE intelligence
← All CVEs

CVE-2025-39841

Critical · CVSS 9.8
CVSS
9.8
nvd
EPSS
KEV
No
Class
oss containerizable
CWE-787

Description

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.

Affected packages

Linux Kernel 5.1.0 → 5.4.299
Linux Kernel 5.11.0 → 5.15.192
Linux Kernel 5.16.0 → 6.1.151
Linux Kernel 5.5.0 → 5.10.243
Linux Kernel 6.13.0 → 6.16.6
Linux Kernel 6.2.0 → 6.6.105
Linux Kernel 6.7.0 → 6.12.46

References

Status: profiled · ingested 2026-07-30T12:00:00.000Z