CVE-2025-39841CWE-787

CVE-2025-39841

Critical · published September 19, 2025

CVSS v3.1
9.8
EPSS
0%
Percentile
40.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00481 · 40.5th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2025-09-19T20:15Z
Affected products (12)
ProductVersionsFixed in
linux/linux_kernel≥ 5.1, < 5.4.2995.4.299
linux/linux_kernel≥ 5.5, < 5.10.2435.10.243
linux/linux_kernel≥ 5.11, < 5.15.1925.15.192
linux/linux_kernel≥ 5.16, < 6.1.1516.1.151
linux/linux_kernel≥ 6.2, < 6.6.1056.6.105
linux/linux_kernel≥ 6.7, < 6.12.466.12.46
linux/linux_kernel≥ 6.13, < 6.16.66.16.6
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
debian/debian_linuxall versions—
References (12)
EPSS history
Timeline
  • 19 SEP 15:26Z
    scsi: lpfc: Fix buffer free/clear order in deferred receive path
    cvelistv5