If a third-party legal claim remains attached to returned property, what must be checked?

Performance and Substitution: Complete and Deficient Adāʾ and Qaḍāʾ