Capitalism and free markets are very good at advancing positive externalities but that doesn't mean they can't solve negative externalities.
In the short term, yes, this can be remedied by central state power. But in the long term a central state is inefficient at solving it and in the long term it will be incentivized by individual economic actors to solve it better.