U.S. stocks rose, with blue chips snapping the longest losing streak in over a year, as investors shook off trading halts in all securities listed on the Nasdaq Stock Market due to technical issues that affected the major market indexes for most of the afternoon.

Nasdaq parent Nasdaq OMX Group announced the halts at 12:15 p.m. EDT. Notices sent to traders said the technical issues were related to data feeds providing market data for...