Barcelona midfielder Gavi is set to miss up to five months after undergoing surgery on a knee injury, the club said Tuesday.