; or (B) a facility that processes compost for sale or distribution to the public. (b) Exemption Subject to subsection (c), no person (including the United States, any State, or an Indian Tribe) may recover costs or damages from a protected entity under the Comprehensive Environmental Response, Compensation, and Liability Act of 1980 ( 42 U.S.C. 9601 et seq. ) for costs arising from a release to the environment of a covered perfluoroalkyl or polyfluoroalkyl substance. (c) Requirements Subsection (b) shall only apply if the release of a covered perfluoroalkyl or polyfluoroalkyl substance by a protected entity resulted from— (1) the disposal or management of any residuals or byproduct of municipal solid waste in accordance with a permit issued under the Federal Water Pollution Control Act ( 33 U.S.C. 1251 et seq. ), the Solid Waste Disposal Act ( 42 U.S.C. 6901 et seq. ), or similar State or local authority; (2) the disposal or management of biosolids consistent with section 405 of the Federal Water Pollution Control Act ( 33 U.S.C. 1345 ); or (3) the application or processing of compost in accordance with State law. (d) Savings provision Nothing in this section precludes liability for damages or costs associated with the release of a covered perfluoroalkyl or polyfluoroalkyl substance by a protected entity if that protected entity acted with gross negligence or willful misconduct in the discharge, disposal, management, processing, conveyance, or storage of the covered perfluoroalkyl or polyfluoroalkyl substance.