Warren Buffett is no fan of bitcoin.

"Stay away from it. It's a mirage, basically," he said on CNBC's "Squawk Box" on Friday.

(Read more: Buffett: It would surprise me if stock prices drop 50%)

In response to a question about the cryptocurrency from Quicken Loans founder Dan Gilbert, Buffett said: