Bug 2396944 (CVE-2025-39841) - CVE-2025-39841 kernel: scsi: lpfc: Fix buffer free/clear order in deferred receive path
Summary: CVE-2025-39841 kernel: scsi: lpfc: Fix buffer free/clear order in deferred re...
Keywords:
Status: NEW
Alias: CVE-2025-39841
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-19 16:03 UTC by OSIDB Bzimport
Modified: 2025-09-26 14:23 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-19 16:03:20 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.