The 32-year-old, who spent three months at Elland Road in 2005, arrives for an initial month with a view to staying until the end of the season.
Gray was a regular at Ewood Park earlier this season, making 12 first-team appearances, but has been out of the first team picture recently.