Any person or persons claiming any interest in or to real property which is alleged to be claimed by the State of California to be situated in the former bed of a navigable river or stream in this State, may bring suit against the State of California, in accordance with law in any court of competent jurisdiction of the State, to quiet title to such property and may prosecute the action to final judgment. If the judgment be given against the State in such suit, no costs shall be recovered against the State.
Ca. Pub. Res. Code § 6461