Troubled smartphone maker BlackBerry has signed a provisional agreement to be bought by a consortium led by Fairfax Financial Holdings Limited, which already owns approximately 10 per cent of the publicly traded shares in the Waterloo, Ont.-based company.