CVE-2025-39841

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*

Configuration 2 (hide)

cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

History

19 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: scsi: lpfc: Corregir el orden de liberación/borrado del búfer en la ruta de recepción diferida Corregir una ventana de uso después de liberación corrigiendo la secuencia de liberación del búfer en la ruta de recepción diferida. El código liberaba primero el búfer RQ y solo entonces borraba el puntero de contexto bajo el bloqueo. Rutas concurrentes (p. ej., ABTS y la ruta de republicación) también inspeccionan y liberan el mismo puntero bajo el bloqueo, por lo que el orden antiguo podría llevar a una doble liberación/UAF. Tenga en cuenta que la ruta de republicación ya utiliza el patrón correcto: desvincular el puntero bajo el bloqueo, luego liberarlo después de soltar el bloqueo. La ruta diferida debería hacer lo mismo.

Information

Published : 2025-09-19 16:15

Updated : 2026-10-19 21:10


NVD link : CVE-2025-39841

Mitre link : CVE-2025-39841

CVE.ORG link : CVE-2025-39841


JSON object : View

Products Affected

debian

  • debian_linux

linux

  • linux_kernel
CWE
CWE-787

Out-of-bounds Write