That in no way prevents overfitting though hyperparameter optimization / graduate student descent. All the common benchmarks, by definition of being a common benchmark, are susceptible to overfitting
That's why you split it 3-way into train, validation, and test datasets, to ensure you didn't use too many hyperparameters and overfit to the validation data.
The idea is that you do all your hyperparameter optimization with the test data and then only run through the validation data once before you submit your paper.