[PATCH 5.10.y] scsi: core: Backport fixes for CVE-2021-47182