CVE-2025-39841: Linux kernel · scsi: lpfc: Fix buffer free/clear order in deferred receive path
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical · fixed in 5.15.0-1097.104~20.04.1 : patch Linux kernel as a priority.
Data as of 28 Oct 2026, 11:26 UTC
- Patch
- Available – fixed in 5.15.0-1097.104~20.04.1, 5.15.0-1102.111~20.04.1, 5.15.0-1097.106~20.04.1 +60
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-7909-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7909-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7909-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7910-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7909-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7910-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7933-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7909-5 (opens in a new tab)
- ubuntu.com/security/notices/USN-7938-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8095-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8100-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8095-2 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-aws-6.14pkg:deb/ubuntu/linux-aws-6.14?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and should be applied promptly. The vulnerability is fixed in Linux kernel versions 5.15.0-1097.104~20.04.1 and later patched releases as listed in the established facts. Users should update to these fixed kernel versions to mitigate the issue. No additional mitigations are indicated by the vendor advisory.
Description
A critical use-after-free vulnerability in the Linux kernel's scsi lpfc driver deferred receive path was fixed by correcting the buffer release sequence. The flaw involved freeing a buffer before clearing its context pointer under a lock, which could lead to double-free or use-after-free conditions. This issue affects multiple Linux kernel versions prior to 5.15.0 updates and has been addressed in several patched releases.
References
- ubuntu.com/security/CVE-2025-39841 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-39841 (opens in a new tab)
- git.kernel.org/linus/9dba9a45c348e8460da97c450cddf70b2056deb3 (opens in a new tab)
- git.kernel.org/stable/c/367cb5ffd8a8a4c85dc89f55e7fa7cc191425b11 (opens in a new tab)
- git.kernel.org/stable/c/55658c7501467ca9ef3bd4453dd920010db8bc13 (opens in a new tab)
- git.kernel.org/stable/c/897f64b01c1249ac730329b83f4f40bab71e86c7 (opens in a new tab)
- git.kernel.org/stable/c/95b63d15fce5c54a73bbf195e1aacb5a75b128e2 (opens in a new tab)
- git.kernel.org/stable/c/9dba9a45c348e8460da97c450cddf70b2056deb3 (opens in a new tab)
- git.kernel.org/stable/c/ab34084f42ee06a9028d67c78feafb911d33d111 (opens in a new tab)
- git.kernel.org/stable/c/baa39f6ad79d372a6ce0aa639fbb2f1578479f57 (opens in a new tab)
- git.kernel.org/stable/c/d96cc9a1b57725930c60b607423759d563b4d900 (opens in a new tab)
- ubuntu.com/security/notices/USN-7909-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7909-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7909-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7910-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7909-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7910-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7933-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7909-5 (opens in a new tab)
- ubuntu.com/security/notices/USN-7938-1 (opens in a new tab)