← All CVEs

CVE-2025-39841

critical · 9.8

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.

9.8
CVSS
0.5%
EPSS (exploit prob.)
40th
EPSS percentile
2025-09-19
Published

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-787

Affected products

VendorProductAffected versions
linuxlinux_kernel>= 5.1, < 5.4.299
linuxlinux_kernel>= 5.5, < 5.10.243
linuxlinux_kernel>= 5.11, < 5.15.192
linuxlinux_kernel>= 5.16, < 6.1.151
linuxlinux_kernel>= 6.2, < 6.6.105
linuxlinux_kernel>= 6.7, < 6.12.46
linuxlinux_kernel>= 6.13, < 6.16.6
linuxlinux_kernel6.17
linuxlinux_kernel6.17
linuxlinux_kernel6.17
linuxlinux_kernel6.17
debiandebian_linux11.0

Check a specific version with /api/v1/cve/match.

References

Query this programmatically:

curl https://evil-db.io/api/v1/cve/CVE-2025-39841