This is why CC0 should not be used for code. Its public license fallback explicitly does not give patent rights. Compare that to MIT which implicitly does by saying you can use the software however you want. CC0 literally has this clause in the public license fallback.
No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
if you can’t enforce copyright, how do you stop others from giving it away for free and editing it, making it foss…?
Patents, trademarks and ToS.
This is why CC0 should not be used for code. Its public license fallback explicitly does not give patent rights. Compare that to MIT which implicitly does by saying you can use the software however you want. CC0 literally has this clause in the public license fallback.