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

Video: The Wave of Market Volatility Paves the Way for Target Date Funds

Video: The Wave of Market Volatility Paves the Way for Target Date Funds

Twitter Founder Jack Dorsey Deserves a Nice Tweet After Q1 Results

Twitter Founder Jack Dorsey Deserves a Nice Tweet After Q1 Results

Facebook Prepares for Earnings and 4 Other Stories You Must Know Wednesday

Facebook Prepares for Earnings and 4 Other Stories You Must Know Wednesday

Tax Tip: Don't Put Your 2017 Tax Return Away -- Yet! (Watch!)

Tax Tip: Don't Put Your 2017 Tax Return Away -- Yet! (Watch!)

The CEO of Wall Street Disruptor Symphony Reacts to Tuesday's Market Declines

The CEO of Wall Street Disruptor Symphony Reacts to Tuesday's Market Declines