A trader works on the floor of the New York Mercantile Exchange.

U.S. stocks rose on Friday, with the S&P 500 rebounding after its largest drop in three months, as investors drew cheer from the latest round of corporate earnings and found solace in the view that geopolitical tensions appeared contained.

"As tragic as it is, it is probably not something that is going to proliferate," said Matthew Kaufler, portfolio manager at Federated Investors of the airliner crash that came a day after the United States and the European Union strengthened sanctions on Russia.