Tragedy of the Commons https://en.wikipedia.org/wiki/Tragedy_of_the_commons
Tragedy of the Anticommons https://en.wikipedia.org/wiki/Tragedy_of_the_anticommons
Unscrupulous diner's dilemma https://en.wikipedia.org/wiki/Unscrupulous_diner%27s_dilemma
The usual solution to these problems is regulation by government.