You would have to prove that the previous owner knew about the problem and failed to disclose it. Legal fees could cost more than repairs and you might end up being burdened with both.