CVE-2025-38289 scsi: lpfc: Avoid potential ndlp use-after-free in dev_loss_tmo_callbk
A use-after-free vulnerability in the Linux kernel lpfc driver allows attackers to potentially execute code or cause a denial of service during driver unload or error handling.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-38289?
CVE-2025-38289 is a high-severity use after free vulnerability in Linux kernel, published on 10 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-416
Which versions are affected by CVE-2025-38289?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-38289?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2025-38289 being exploited?
There is no known exploitation of CVE-2025-38289 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-38289, DEBIAN-CVE-2025-38289, GHSA-76f4-3487-46jf, ROOT-OS-UBUNTU-2404-CVE-2025-38289, UBUNTU-CVE-2025-38289.