The new filter may solve the contamination problem. It offers a solution … the problem.
Explanation
Solution takes to when it names the problem that the proposed measure resolves. For is tempting because solutions can be intended for people, but it does not link solution to the problem itself.