CVE-2025-39841
Last modified
CVE-2025-39841 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.1, < 5.4.299 | — |
| Linux | Linux Kernel | >= 5.5, < 5.10.243 | — |
| Linux | Linux Kernel | >= 5.11, < 5.15.192 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.151 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.105 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.46 | — |
| Linux | Linux Kernel | >= 6.13, < 6.16.6 | — |
| Linux | Linux Kernel | 6.17 | Rc1 |
| Debian | Debian Linux | 11.0 | — |
References
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlMailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-39841?
How severe is CVE-2025-39841?
How do I fix CVE-2025-39841?
Are you affected by CVE-2025-39841?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
