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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-39836In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39837In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39838In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39839In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-3984A vulnerability was found in Apereo CAS 5.2.6 and classified…7.5
- CVE-2025-39840In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-39842In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39843In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39844In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39845In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39846In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39847In the Linux kernel, the following vulnerability has been re…5.5
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
