How does cockroachDB guarantee linearizable read?

How does cockroachDB guarantee linearizable read?

Is there any document or which part of code is related?

Take a look here: https://www.cockroachlabs.com/blog/consistency-model/. I think it is a good starting point for answering your question.