In the Linux kernel through 5.4.6, there is a NULL pointer dereference in drivers/scsi/libsas/sas_discover.c because of mishandling of port disconnection during discovery, related to a PHY down race condition.
Reference and upstream commit:
Created kernel tracking bugs for this issue:
Affects: fedora-all [bug 1794405]
This is fixed for Fedora with the 5.4.9 stable kernel update.