CVE-2021-47183 scsi: lpfc: Fix link down processing to address NULL pointer dereference
A NULL pointer dereference in the Linux kernel lpfc driver can cause a denial of service during specific Fibre Channel link down transitions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47183?
CVE-2021-47183 is a high-severity vulnerability in Linux kernel, published on 10 Apr 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: Fix link down processing to address NULL pointer dereference
If an FC link down transition while PLOGIs are outstanding to fabric well known addresses, outstanding ABTS requests may result in a NULL pointer dereference. Driver unload requests may hang with repeated "2878" log messages.
The Link down processing results in ABTS requests for outstanding ELS requests. The Abort WQEs are sent for the ELSs before the driver had set the link state to down. Thus the driver is sending the Abort with the expectation that an ABTS will be sent on the wire. The Abort request is stalled waiting for the link to come up. In some conditions the driver may auto-complete the ELSs thus if the link does come up, the Abort completions may reference an invalid structure.
Fix by ensuring that Abort set the flag to avoid link traffic if issued due to conditions where the link failed.
Weakness: CWE-476
Which versions are affected by CVE-2021-47183?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47183?
Apply the vendor's patch.
Is CVE-2021-47183 being exploited?
There is no known exploitation of CVE-2021-47183 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47183, GHSA-m7wr-q7cm-56rh, ROOT-OS-DEBIAN-11-CVE-2021-47183, UBUNTU-CVE-2021-47183.