The Argentinian agreed a contract extension with the Camp Nou club on Saturday, keeping him in Barcelona until at least 2018.
But Mascherano has now hinted that he will seek a return to his homeland at the end of that new deal.
"I'm happy to have renewed with the club," he is quoted as saying by Sport.es. "I'll play there the next four years.
"After (that), I retire in River."
The 29-year-old, who forms part of Argentina's FIFA World Cup squad, began his professional career at River Plate before moving to Corinthians in 2005.
Stints at West Ham and Liverpool followed, and he has enjoyed great success since signing for Barca in 2010, winning the UEFA Champions League, two La Liga titles and the Copa del Rey.
Get the best features, fun and footballing frolics straight to your inbox every week.
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.