The 22-year-old's eisting deal will expire in the summer of 2016.
Rafinha has been sidelined since rupturing a cruciate ligament in a 1-1 draw with Roma in September in the Champions League.
Rafinha, the younger brother of Bayern Munich star Thiago, has made three La Liga appearances this season.