CVE-2024-36952 scsi: lpfc: Move NPIV's transport unregistration to after resource clean up
A race condition in the lpfc SCSI driver causes NPIV ports to remain registered on the fabric switch after deletion, requiring a kernel patch.
- 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-2024-36952?
CVE-2024-36952 is a medium-severity vulnerability in Linux kernel, published on 30 May 2024. 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: Move NPIV's transport unregistration to after resource clean up
There are cases after NPIV deletion where the fabric switch still believes the NPIV is logged into the fabric. This occurs when a vport is unregistered before the Remove All DA_ID CT and LOGO ELS are sent to the fabric.
Currently fc_remove_host(), which calls dev_loss_tmo for all D_IDs including the fabric D_ID, removes the last ndlp reference and frees the ndlp rport object. This sometimes causes the race condition where the final DA_ID and LOGO are skipped from being sent to the fabric switch.
Fix by moving the fc_remove_host() and scsi_remove_host() calls after DA_ID and LOGO are sent.
Weakness: CWE-459
Which versions are affected by CVE-2024-36952?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-36952?
Apply the vendor's patch.
Is CVE-2024-36952 being exploited?
There is no known exploitation of CVE-2024-36952 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-36952, DEBIAN-CVE-2024-36952, ROOT-OS-DEBIAN-11-CVE-2024-36952, UBUNTU-CVE-2024-36952.