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

Women Need More Investing Confidence

Women Need More Investing Confidence

Jim Cramer Dives Into Cannabis and IBM Earnings

Jim Cramer Dives Into Cannabis and IBM Earnings

Last Week's Gold Breakout Wasn't "Real" - Bloomberg Intelligence

Last Week's Gold Breakout Wasn't "Real" - Bloomberg Intelligence

Income Investing in 2018 Is About Spending Habits: Cramer's Investing Teach-in

Income Investing in 2018 Is About Spending Habits: Cramer's Investing Teach-in

Retirees Make One Big Investing Mistake - Not Planning!

Retirees Make One Big Investing Mistake - Not Planning!