San Francisco 49ers linebacker Patrick Willis underwent surgery recently to repair a fractured right hand, according to a source.