Triple descent and the two kinds of overfitting: where and why do they appear?*This article is an updated version of: Ascoli S, Sagun L and Biroli G 2020 Triple descent and the two kinds of overfitting: where and why do they appear? Advances in Neural Information Processing Systems vol 33 ed H Larochelle, M Ranzato, R Hadsell, M F Balcan and H Lin (New York: Curran Associates). (29th December 2021)