2084AI Security Observatory

CVE

CVE-2025-39841

CVE-2025-39841HIGH 7.8EPSS 44%

CNA 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 versions

All Linux kernel vulnerabilities →

  • 6.17-rc4This version only
  • 6.17-rc3This version only
  • 6.17-rc2This version only
  • 6.17-rc1This version only
  • ≥ 6.13, < 6.16.6Fixed in 6.16.6
  • ≥ 6.7, < 6.12.46Fixed in 6.12.46
  • ≥ 6.2, < 6.6.105Fixed in 6.6.105
  • ≥ 5.16, < 6.1.151Fixed in 6.1.151
  • ≥ 5.11, < 5.15.192Fixed in 5.15.192
  • ≥ 5.5, < 5.10.243Fixed in 5.10.243
  • ≥ 5.1, < 5.4.299Fixed in 5.4.299

Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.

Advisories and patches

Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.