U.S. stocks rose on Wednesday, the second trading day of 2018. The three benchmark U.S. indexes hit record closes after setting intraday records earlier.

Shares of Intel Corp. (INTC) fell following reports of a potential bug in the chipmaker's technology. Intel said that it believes these "exploits do not have the potential to corrupt, modify or delete data." It is also working with other technology companies to develop an industry-wide approach to resolve this issue. Shares of rival Advanced Micro Devices Inc. (AMD) soared on the report.

MoneyGram International Inc. (MGI) stock tanked after U.S. regulators rejected Ant Financial's plan to acquire the U.S. money transfer company over national security concerns. The $1.2 billion deal, which had been in the works for several years, represents a blow for Jack Ma, the executive chairman of Chinese internet conglomerate Alibaba Group Holding Ltd. (BABA) , who owns Ant Financial together with Alibaba executives.

Want more exclusive investing insight from Jim Cramer? Get 24/7 access to Jim's charitable trust portfolio with a free trial to Action Alerts PLUS!

More from Video

Don't Guess About Your Retirement -- Get Smart and Get Help

Don't Guess About Your Retirement -- Get Smart and Get Help

Shark Tank Star Kevin O'Leary Reveals Why Stocks Haven't Corrected Recently

Shark Tank Star Kevin O'Leary Reveals Why Stocks Haven't Corrected Recently

Google Faces Record Fine and 4 Other Stories to Watch Wednesday Morning

Google Faces Record Fine and 4 Other Stories to Watch Wednesday Morning

Video: Here's How Goldman Sachs May Change Under David Solomon

Video: Here's How Goldman Sachs May Change Under David Solomon

Jim Cramer: Bank of America Expects 4% Economic Growth in Q2

Jim Cramer: Bank of America Expects 4% Economic Growth in Q2