In the event of injury to a person covered under this chapter caused by the negligence of a vessel, then such person, or anyone otherwise entitled to recover damages by reason thereof, may bring an action against such vessel as a third party in accordance with the provisions of section
of this title, and the employer shall not be liable to the vessel for such damages directly or indirectly and any agreements or warranties to the contrary shall be void. If such person was employed by the vessel to provide stevedoring services, no such action shall be permitted if the injury was caused by the negligence of persons engaged in providing stevedoring services to the vessel. If such person was employed to provide shipbuilding, repairing, or breaking services and such person’s employer was the owner, owner pro hac vice, agent, operator, or charterer of the vessel, no such action shall be permitted, in whole or in part or directly or indirectly, against the injured person’s employer (in any capacity, including as the vessel’s owner, owner pro hac vice, agent, operator, or charterer) or against the employees of the employer. The liability of the vessel under this subsection shall not be based upon the warranty of seaworthiness or a breach thereof at the time the injury occurred. The remedy provided in this subsection shall be exclusive of all other remedies against the vessel except remedies available under this chapter.