It’s truth, not legend: Many white cats are deaf, particularly white cats with blue eyes. This is caused by genetics, and if there is a way to prevent it, no one has found it yet.
Since cats have such sensitive hearing, it is sad to think of one going through life without being able to hear, but in fact there are plenty of perfectly contented deaf cats in the world, though their owners need to be a little extra watchful for them.