Skip to content
9.8 Critical

CVE-2025-39841 In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Fix buffer free/clear order in…

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 products and versions

Product Affected versions Fixed in
Linux 6.17 earliest → < 6.17 6.17
Linux 6.16 earliest → < 6.16.6 6.16.6
Linux 6.12 earliest → < 6.12.46 6.12.46
Linux 6.6 earliest → < 6.6.105 6.6.105
Linux 6.1 earliest → < 6.1.151 6.1.151
Linux 5.15 earliest → < 5.15.192 5.15.192
Linux 5.10 earliest → < 5.10.243 5.10.243
Linux 5.4 earliest → < 5.4.299 5.4.299
Linux 5.1 No fix stated
Show the 17 other branches
Product Affected versions Fixed in
RUGGEDCOM RST2428P 3.3 earliest → < 3.3 3.3
SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family 3.3 earliest → < 3.3 3.3
SCALANCE XCH328 3.3 earliest → < 3.3 3.3
SCALANCE XCM324 3.3 earliest → < 3.3 3.3
SCALANCE XCM328 3.3 earliest → < 3.3 3.3
SCALANCE XCM332 3.3 earliest → < 3.3 3.3
SCALANCE XRH334 (24 V DC, 8xFO, CC) 3.3 earliest → < 3.3 3.3
SCALANCE XRM334 (230 V AC, 12xFO) 3.3 earliest → < 3.3 3.3
SCALANCE XRM334 (230 V AC, 8xFO) 3.3 earliest → < 3.3 3.3
SCALANCE XRM334 (230V AC, 2x10G, 24xSFP, 8xSFP+) 3.3 earliest → < 3.3 3.3
SCALANCE XRM334 (24 V DC, 12xFO) 3.3 earliest → < 3.3 3.3
SCALANCE XRM334 (24 V DC, 8xFO) 3.3 earliest → < 3.3 3.3
SCALANCE XRM334 (24V DC, 2x10G, 24xSFP, 8xSFP+) 3.3 earliest → < 3.3 3.3
SCALANCE XRM334 (2x230 V AC, 12xFO) 3.3 earliest → < 3.3 3.3
SCALANCE XRM334 (2x230 V AC, 8xFO) 3.3 earliest → < 3.3 3.3
SCALANCE XRM334 (2x230V AC, 2x10G, 24xSFP, 8xSFP+) 3.3 earliest → < 3.3 3.3
SIMATIC CN 4100 5.0 earliest → < 5.0 5.0

References

Timeline

  1. Published
  2. Last modified
The 18283 CVEs of Linux →
Track this CVE